Package org.jgrapht.util
Class UnmodifiableUnionSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.jgrapht.util.UnmodifiableUnionSet<E>
-
- Type Parameters:
E
- the element type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
public class UnmodifiableUnionSet<E> extends java.util.AbstractSet<E> implements java.io.Serializable
An unmodifiable live view of the union of two sets.- Author:
- Dimitrios Michail
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableUnionSet(java.util.Set<E> first, java.util.Set<E> second)
Constructs a new set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object o)
java.util.Iterator<E>
iterator()
int
size()
Since the view is live, this operation is no longer a constant time operation.-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator<E> iterator()
-
size
public int size()
Since the view is live, this operation is no longer a constant time operation.
-
-