public int size() {
        return this.all.size();
    }
Returns the number of elements in this list. If this list contains more
than {@code Integer.MAX_VALUE} elements, returns
{@code Integer.MAX_VALUE}.

@return the number of elements in this list
@since 4.3
httpclient5/src/main/java/org/apache/hc/client5/http/protocol/RedirectLocations.java