| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: a List of the combinations foundthe given collections collections)Finds all combinations of items from the given collections. |
| public static List | |
| public static List | Returns: a List of the combinations foundthe Iterable of given collections collections)Finds all combinations of items from the given Iterable aggregate of collections. |
| public static <T> List | |
| public static <T> T | Returns: the maximum valuean array of items items)Selects the maximum value found in an array of items, so max([2, 4, 6] as Object[]) == 6. |
| public static <T> T | |
| public static <T> T | |
| public static <T> T | Returns: the minimum valuean array of items items)Selects the minimum value found in an array of items, so min([2, 4, 6] as Object[]) == 2. |
| public static <T> T | |
| public static <T> T | |
| public static <T> Set | Returns: the subsequences from itemsthe List of items items)Finds all non-null subsequences of a list. |
| public static Object | |
| public static Object | |
| public static Object | |
| public static <T> List | |
| public static List | |
| public static List |
| GroovyCollections | back to summary |
|---|---|
| public GroovyCollections() | |
| combinations | back to summary |
|---|---|
| public static List Finds all combinations of items from the given collections.
| |
| combinations | back to summary |
|---|---|
| public static List Deprecated use combinations(Iterable)
| |
| combinations | back to summary |
|---|---|
| public static List Finds all combinations of items from the given Iterable aggregate of collections.
So, | |
| inits | back to summary |
|---|---|
| public static <T> List | |
| max | back to summary |
|---|---|
| public static <T> T max(T[] items) Selects the maximum value found in an array of items, so max([2, 4, 6] as Object[]) == 6.
| |
| max | back to summary |
|---|---|
| public static <T> T max(Collection<T> items)
Deprecated use max(Iterable)
| |
| max | back to summary |
|---|---|
| public static <T> T max(Iterable<T> items) Selects the maximum value found in an Iterable.
| |
| min | back to summary |
|---|---|
| public static <T> T min(T[] items) Selects the minimum value found in an array of items, so min([2, 4, 6] as Object[]) == 2.
| |
| min | back to summary |
|---|---|
| public static <T> T min(Collection<T> items)
Deprecated use min(Iterable)
| |
| min | back to summary |
|---|---|
| public static <T> T min(Iterable<T> items) Selects the minimum value found in an Iterable of items.
| |
| subsequences | back to summary |
|---|---|
| public static <T> Set Finds all non-null subsequences of a list.
E.g. | |
| sum | back to summary |
|---|---|
| public static Object sum(Object[] items) Sums all the items from an array of items. | |
| sum | back to summary |
|---|---|
| public static Object sum(Collection<E> items)
Deprecated use sum(Iterable)
| |
| sum | back to summary |
|---|---|
| public static Object sum(Iterable<?> items) Sums all the given items. | |
| tails | back to summary |
|---|---|
| public static <T> List | |
| transpose | back to summary |
|---|---|
| public static List Transposes an array of lists.
| |
| transpose | back to summary |
|---|---|
| public static List Transposes the given lists.
So, | |