public abstract class Collect<FromType,ToType>
extends java.util.ArrayList<ToType>
| Constructor and Description |
|---|
Collect(java.util.Collection<FromType> c)
Creates a new collection, where the condition passes the condition.
|
Collect(FromType[] ary)
Ditto, but for real arrays.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ToType |
block(FromType obj)
Returns the object to add to the collection.
|
abstract boolean |
where(FromType 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<FromType> c)
c - The collection from which to build the new collection.public Collect(FromType[] ary)
public abstract boolean where(FromType obj)
obj - An object from the collection passed to the constructor.