|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codeartisans.java.toolbox.Collections
public final class Collections
| Method Summary | ||
|---|---|---|
static
|
added(java.util.Collection<T> left,
java.util.Collection<T> right)
|
|
static boolean |
collectionEquals(java.util.Collection<?> oldCollection,
java.util.Collection<?> newCollection)
|
|
static
|
filter(java.util.Collection<T> list,
Filter<T>... filters)
Filter a Collection using Filters and return a new Collection. |
|
static
|
filter(java.lang.Iterable<T> list,
Filter<T>... filters)
Filter an Iterable using Filters and return a new Iterable. |
|
static
|
filter(java.util.List<T> list,
Filter<T>... filters)
Filter a List using Filters and return a new List. |
|
static
|
firstElementOrNull(java.lang.Iterable<T> iterable)
|
|
static boolean |
isEmpty(java.lang.Iterable<?> iterable)
|
|
static
|
removed(java.util.Collection<T> left,
java.util.Collection<T> right)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isEmpty(java.lang.Iterable<?> iterable)
Iterable is null or empty, otherwise return FALSEpublic static <T> T firstElementOrNull(java.lang.Iterable<T> iterable)
Iterable or null if it is null or empty.
public static <T> java.util.List<T> filter(java.util.List<T> list,
Filter<T>... filters)
List using Filters and return a new List.
Filters are applied in given order on each element from source collection.Filter.
public static <T> java.util.Collection<T> filter(java.util.Collection<T> list,
Filter<T>... filters)
Collection using Filters and return a new Collection.
Filters are applied in given order on each element from source collection.Filter.
public static <T> java.lang.Iterable<T> filter(java.lang.Iterable<T> list,
Filter<T>... filters)
Iterable using Filters and return a new Iterable.
Filters are applied in given order on each element from source collection.Filter.
public static boolean collectionEquals(java.util.Collection<?> oldCollection,
java.util.Collection<?> newCollection)
oldCollection - A CollectionnewCollection - Another Collection
public static <T> java.util.Collection<T> removed(java.util.Collection<T> left,
java.util.Collection<T> right)
T - Type of collection elements.left - Left collection of query. Treated as an empty collection if null.right - Right collection of query. Treated as an empty collection if null.
public static <T> java.util.Collection<T> added(java.util.Collection<T> left,
java.util.Collection<T> right)
T - Type of collection elements.left - Left collection of query. Treated as an empty collection if null.right - Right collection of query. Treated as an empty collection if null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||