Class ConjureCollections
java.lang.Object
com.palantir.conjure.java.lib.internal.ConjureCollections
Utility functions for conjure. Consumers should prefer to use something like guava instead of using these functions
directly.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidaddAll(Collection<T> addTo, Iterable<? extends T> elementsToAdd) static <T> voidaddAllAndCheckNonNull(Collection<T> addTo, Iterable<? extends T> elementsToAdd) static voidaddAllToDoubleList(Collection<Double> addTo, double[] elementsToAdd) static voidaddAllToIntegerList(Collection<Integer> addTo, int[] elementsToAdd) static voidaddAllToSafeLongList(Collection<SafeLong> addTo, long[] elementsToAdd) static voidaddToDoubleList(Collection<Double> addTo, double toAdd) static voidaddToIntegerList(Collection<Integer> addTo, int toAdd) static <T> ArrayList<T> newArrayList(Iterable<? extends T> iterable) static <T> LinkedHashSet<T> newLinkedHashSet(Iterable<? extends T> iterable) static <T> List<T> newList()static <T> List<T> Deprecated, this should only ever be called by a previously generated conjure internal implementation.newNonNullBooleanList(Iterable<Boolean> iterable) Deprecated, this should only ever be called by a previously generated conjure internal implementation.newNonNullDoubleList(double[] doubles) newNonNullDoubleList(Iterable<Double> iterable) newNonNullIntegerList(int[] ints) newNonNullIntegerList(Iterable<Integer> iterable) static <T> List<T> static <T> List<T> newNonNullList(Iterable<? extends T> iterable) newNonNullSafeLongList(Iterable<SafeLong> iterable) static <T> Set<T> static <T> Set<T> newNonNullSet(Iterable<? extends T> iterable) static <T> Set<T> newSet()static <T> Set<T> static <T> List<T> unmodifiableList(List<T> list)
-
Method Details
-
unmodifiableList
-
addAll
-
addAllAndCheckNonNull
public static <T> void addAllAndCheckNonNull(Collection<T> addTo, Iterable<? extends T> elementsToAdd) -
newArrayList
-
newLinkedHashSet
-
newList
-
newList
-
newNonNullList
-
newNonNullList
-
newSet
-
newSet
-
newNonNullSet
-
newNonNullSet
-
newNonNullDoubleList
-
newNonNullDoubleList
-
newNonNullDoubleList
-
addToDoubleList
-
addAllToDoubleList
-
newNonNullIntegerList
-
newNonNullIntegerList
-
newNonNullIntegerList
-
addToIntegerList
-
addAllToIntegerList
-
newNonNullBooleanList
-
newNonNullBooleanList
-
newNonNullSafeLongList
-
newNonNullSafeLongList
-
addAllToSafeLongList
-