org.incava.util
public abstract class Collect extends ArrayList
Constructor Summary | |
---|---|
Collect(Collection c)
Creates a new collection, where the condition passes the condition.
| |
Collect(Object[] ary)
Ditto, but for real arrays. |
Method Summary | |
---|---|
Object | block(Object obj)
Returns the object to add to the collection.
|
abstract boolean | where(Object obj)
Must be defined to return where the given object satisfies the condition.
|
Parameters: c The collection from which to build the new collection.
Parameters: obj An object from the collection passed to the constructor.
Parameters: obj An object from the collection passed to the constructor.