Collection instances.
Java 8+ users: several common uses for this class are now more comprehensively
addressed by the new java. library. Read the method documentation below
for comparisons. These methods are not being deprecated, but we gently encourage you to migrate
to streams.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | containsAllImpl(Collection<?>
a collection which might contain all elements in self, Collection<?> ca collection whose elements might be contained by c)selfReturns |
| public static <E extends @Nullable Object> Collection | filter(Collection<E> unfiltered, Predicate<? super E> predicate)
Returns the elements of |
| private static boolean | isPermutation(List<?> first, List<?> second)
Returns |
| pack-priv static StringBuilder | newStringBuilderForCollection(int size)
Returns best-effort-sized StringBuilder based on the given collection size. |
| public static <E extends Comparable | Returns: an immutableCollection containing all the different permutations of the
original iterable.the original iterable whose elements have to be permuted. elements)Returns a |
| public static <E> Collection | Returns: an immutableCollection containing all the different permutations of the
original iterable.the original iterable whose elements have to be permuted. elements, Comparator<? super E> a comparator for the iterable's elements. comparator)Returns a |
| public static <E> Collection | Returns: an immutableCollection containing all the different permutations of the
original collection.the original collection whose elements have to be permuted. elements)Returns a |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static String | |
| public static <F extends @Nullable Object, T extends @Nullable Object> Collection | transform(Collection<F> fromCollection, Function<? super F, T> function)
Returns a collection that applies |