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:
Serializable, Iterable<E>, Collection<E>, Set<E>
An unmodifiable live view of the union of two sets.
- Author:
- Dimitrios Michail
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
UnmodifiableUnionSet
-
-
Method Details
-
iterator
-
size
public int size()Since the view is live, this operation is no longer a constant time operation.- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<E>
-