|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<T> org.zkoss.util.DualCollection<T>
public class DualCollection<T>
A combination of two collections into a collection.
Constructor Summary | |
---|---|
DualCollection(java.util.Collection<T> first,
java.util.Collection<T> second)
Constructor. |
Method Summary | ||
---|---|---|
static
|
combine(java.util.Collection<M> first,
java.util.Collection<M> second)
Returns a collection by combining two collections. |
|
java.util.Iterator<T> |
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<T> first, java.util.Collection<T> 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 <M> java.util.Collection<M> combine(java.util.Collection<M> first, java.util.Collection<M> second)
public int size()
size
in interface java.util.Collection<T>
size
in class java.util.AbstractCollection<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
iterator
in interface java.util.Collection<T>
iterator
in class java.util.AbstractCollection<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |