A
- the actual type of AmetysObject
s.public interface AmetysObjectIterable<A extends AmetysObject> extends Iterable<A>, Closeable
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() |
default Spliterator<A> |
spliterator() |
default Stream<A> |
stream()
Returns a sequential
Stream with this iterable as its source. |
long getSize()
AmetysObjectIterator<A> iterator()
iterator
in interface Iterable<A extends AmetysObject>
void close()
AmetysObjectIterable
must NOT be closed if any of the contained AmetysObject
is still in use.close
in interface AutoCloseable
close
in interface Closeable
default Stream<A> stream()
Stream
with this iterable as its source.Stream
over the objects in this iterable.default Spliterator<A> spliterator()
spliterator
in interface Iterable<A extends AmetysObject>