protected class StaticZone.StaticZoneItemIterable extends Object implements AmetysObjectIterable<StaticZoneItem>
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectIterable<? extends ZoneItem> |
_iterable
The wrapped iterable.
|
Constructor and Description |
---|
StaticZoneItemIterable(AmetysObjectIterable<? extends ZoneItem> iterable)
Construct a StaticZoneItemIterable, wrapping an iterable.
|
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<StaticZoneItem> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
spliterator, stream
protected AmetysObjectIterable<? extends ZoneItem> _iterable
public StaticZoneItemIterable(AmetysObjectIterable<? extends ZoneItem> iterable)
iterable
- zone item iterable.public AmetysObjectIterator<StaticZoneItem> iterator()
iterator
in interface Iterable<StaticZoneItem>
iterator
in interface AmetysObjectIterable<StaticZoneItem>
public long getSize()
AmetysObjectIterable
getSize
in interface AmetysObjectIterable<StaticZoneItem>
public void close()
AmetysObjectIterable
AmetysObjectIterable
must NOT be closed if any of the contained AmetysObject
is still in use.close
in interface Closeable
close
in interface AutoCloseable
close
in interface AmetysObjectIterable<StaticZoneItem>