public class DualCollection<T>
extends java.util.AbstractCollection<T>
implements java.io.Serializable
Constructor and Description |
---|
DualCollection(java.util.Collection<T> first,
java.util.Collection<T> second)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <M> java.util.Collection<M> |
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() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public DualCollection(java.util.Collection<T> first, java.util.Collection<T> second)
combine(java.util.Collection<M>, java.util.Collection<M>)
instead of this method
since it checks whether any of them is null or equals.public static final <M> java.util.Collection<M> combine(java.util.Collection<M> first, java.util.Collection<M> second)
public int size()
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.