|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.incava.util.Collect
public abstract class Collect
Collects a collections into a collection.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode |
| Constructor Detail |
|---|
public Collect(java.util.Collection c)
c - The collection from which to build the new collection.public Collect(java.lang.Object[] ary)
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||