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