|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
umontreal.iro.lecuyer.collections.MergedCollection<E>
umontreal.iro.lecuyer.collections.MergedSet<E>
E
- the type of the elements in the merged set.public class MergedSet<E>
Represents a set providing a view of two sets. This extends the merged
collection for implementing the Set
interface.
Constructor Summary | |
---|---|
MergedSet(Set<? extends E> set1,
Set<? extends E> set2)
Constructs a set merging sets set1 and set2. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Set<? extends E> |
getFirstCollection()
Returns a reference to the first set of this merged set. |
Set<? extends E> |
getSecondCollection()
Returns a reference to the second set of this merged set. |
int |
hashCode()
|
Iterator<E> |
iterator()
Constructs and returns an iterator for the merged set. |
int |
size()
|
Methods inherited from class umontreal.iro.lecuyer.collections.MergedCollection |
---|
contains, isEmpty |
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, clear, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public MergedSet(Set<? extends E> set1, Set<? extends E> set2)
set1
- the first set.set2
- the second set.
NullPointerException
- if set1 or set2 are null.Method Detail |
---|
public Set<? extends E> getFirstCollection()
getFirstCollection
in class MergedCollection<E>
public Set<? extends E> getSecondCollection()
getSecondCollection
in class MergedCollection<E>
public boolean equals(Object o)
equals
in interface Collection<E>
equals
in interface Set<E>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface Set<E>
hashCode
in class Object
public Iterator<E> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface Set<E>
iterator
in class MergedCollection<E>
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class MergedCollection<E>
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |