Class ConjureCollections

java.lang.Object
com.palantir.conjure.java.lib.internal.ConjureCollections

public final class ConjureCollections extends Object
Utility functions for conjure. Consumers should prefer to use something like guava instead of using these functions directly.
  • Method Details

    • unmodifiableList

      public static <T> List<T> unmodifiableList(List<T> list)
    • addAll

      public static <T> void addAll(Collection<T> addTo, Iterable<? extends T> elementsToAdd)
    • addAllAndCheckNonNull

      public static <T> void addAllAndCheckNonNull(Collection<T> addTo, Iterable<? extends T> elementsToAdd)
    • newArrayList

      public static <T> ArrayList<T> newArrayList(Iterable<? extends T> iterable)
    • newLinkedHashSet

      public static <T> LinkedHashSet<T> newLinkedHashSet(Iterable<? extends T> iterable)
    • newList

      public static <T> List<T> newList()
    • newList

      public static <T> List<T> newList(Iterable<? extends T> iterable)
    • newNonNullList

      public static <T> List<T> newNonNullList()
    • newNonNullList

      public static <T> List<T> newNonNullList(Iterable<? extends T> iterable)
    • newSet

      public static <T> Set<T> newSet()
    • newSet

      public static <T> Set<T> newSet(Iterable<? extends T> iterable)
    • newNonNullSet

      public static <T> Set<T> newNonNullSet()
    • newNonNullSet

      public static <T> Set<T> newNonNullSet(Iterable<? extends T> iterable)
    • newNonNullDoubleList

      public static List<Double> newNonNullDoubleList()
    • newNonNullDoubleList

      public static List<Double> newNonNullDoubleList(double[] doubles)
    • newNonNullDoubleList

      public static List<Double> newNonNullDoubleList(Iterable<Double> iterable)
    • addToDoubleList

      public static void addToDoubleList(Collection<Double> addTo, double toAdd)
    • addAllToDoubleList

      public static void addAllToDoubleList(Collection<Double> addTo, double[] elementsToAdd)
    • newNonNullIntegerList

      public static List<Integer> newNonNullIntegerList()
    • newNonNullIntegerList

      public static List<Integer> newNonNullIntegerList(int[] ints)
    • newNonNullIntegerList

      public static List<Integer> newNonNullIntegerList(Iterable<Integer> iterable)
    • addToIntegerList

      public static void addToIntegerList(Collection<Integer> addTo, int toAdd)
    • addAllToIntegerList

      public static void addAllToIntegerList(Collection<Integer> addTo, int[] elementsToAdd)
    • newNonNullBooleanList

      public static List<Boolean> newNonNullBooleanList()
      Deprecated, this should only ever be called by a previously generated conjure internal implementation.
    • newNonNullBooleanList

      public static List<Boolean> newNonNullBooleanList(Iterable<Boolean> iterable)
      Deprecated, this should only ever be called by a previously generated conjure internal implementation.
    • newNonNullSafeLongList

      public static List<SafeLong> newNonNullSafeLongList()
    • newNonNullSafeLongList

      public static List<SafeLong> newNonNullSafeLongList(Iterable<SafeLong> iterable)
    • addAllToSafeLongList

      public static void addAllToSafeLongList(Collection<SafeLong> addTo, long[] elementsToAdd)