Package generic
Class AbstractUnionedCollection<E>
java.lang.Object
java.util.AbstractCollection<E>
generic.AbstractUnionedCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>
- Direct Known Subclasses:
CatenatedCollection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractUnionedCollection(Collection<? extends E>... collections) AbstractUnionedCollection(Collection<? extends Collection<? extends E>> collections) -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, iterator, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
collections
-
-
Constructor Details
-
AbstractUnionedCollection
-
AbstractUnionedCollection
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein classAbstractCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>- Overrides:
isEmptyin classAbstractCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Overrides:
containsin classAbstractCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>- Overrides:
removein classAbstractCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Overrides:
removeAllin classAbstractCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Overrides:
retainAllin classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractCollection<E>
-