A - the actual type of AmetysObjects.public class UniqueChainedAmetysObjectIterable<A extends AmetysObject> extends Object implements AmetysObjectIterable<A>
AmetysObjectIterable based on a list of others AmetysObjectIterable,
returning duplicate objects only once.| Modifier and Type | Class and Description |
|---|---|
(package private) class |
UniqueChainedAmetysObjectIterable.UniqueChainedIterator |
| Modifier and Type | Field and Description |
|---|---|
private List<AmetysObjectIterable<A>> |
_iterables |
| Constructor and Description |
|---|
UniqueChainedAmetysObjectIterable(List<AmetysObjectIterable<A>> iterables)
Creates a
UniqueChainedAmetysObjectIterable. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the associated resources.
An AmetysObjectIterable must NOT be closed if any of the contained AmetysObject is still in use. |
long |
getSize()
Returns the number of elements in this iterable.
|
AmetysObjectIterator<A> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitspliterator, streamprivate List<AmetysObjectIterable<A extends AmetysObject>> _iterables
public UniqueChainedAmetysObjectIterable(List<AmetysObjectIterable<A>> iterables)
UniqueChainedAmetysObjectIterable.iterables - a list of AmetysObjectIterable.public long getSize()
AmetysObjectIterablegetSize in interface AmetysObjectIterable<A extends AmetysObject>public AmetysObjectIterator<A> iterator()
iterator in interface Iterable<A extends AmetysObject>iterator in interface AmetysObjectIterable<A extends AmetysObject>public void close()
AmetysObjectIterableAmetysObjectIterable must NOT be closed if any of the contained AmetysObject is still in use.close in interface Closeableclose in interface AutoCloseableclose in interface AmetysObjectIterable<A extends AmetysObject>