|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
org.zkoss.util.DualCollection
public class DualCollection
A combination of two collections into a collection.
Constructor Summary | |
---|---|
DualCollection(java.util.Collection first,
java.util.Collection second)
Constructor. |
Method Summary | |
---|---|
static java.util.Collection |
combine(java.util.Collection first,
java.util.Collection second)
Returns a collection by combining two collections. |
java.util.Iterator |
iterator()
|
int |
size()
|
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public DualCollection(java.util.Collection first, java.util.Collection second)
combine(java.util.Collection, java.util.Collection)
instead of this method
since it checks whether any of them is null or equals.
Method Detail |
---|
public static final java.util.Collection combine(java.util.Collection first, java.util.Collection second)
public int size()
size
in interface java.util.Collection
size
in class java.util.AbstractCollection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in class java.util.AbstractCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |