public abstract class Collect
extends java.util.ArrayList
| Constructor and Description |
|---|
Collect(java.util.Collection c)
Creates a new collection, where the condition passes the condition.
|
Collect(java.lang.Object[] ary)
Ditto, but for real arrays.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
block(java.lang.Object obj)
Returns the object to add to the collection.
|
abstract boolean |
where(java.lang.Object obj)
Must be defined to return where the given object satisfies the condition.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic Collect(java.util.Collection c)
c - The collection from which to build the new collection.public Collect(java.lang.Object[] ary)
public abstract boolean where(java.lang.Object obj)
obj - An object from the collection passed to the constructor.public java.lang.Object block(java.lang.Object obj)
obj - An object from the collection passed to the constructor.