Class StaticZone.StaticZoneItemIterable
java.lang.Object
org.ametys.plugins.blog.repository.StaticZone.StaticZoneItemIterable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<StaticZoneItem>
,AmetysObjectIterable<StaticZoneItem>
- Enclosing class:
- StaticZone
protected class StaticZone.StaticZoneItemIterable
extends Object
implements AmetysObjectIterable<StaticZoneItem>
Static zone item iterable.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectIterable<? extends ZoneItem>
The wrapped iterable. -
Constructor Summary
ConstructorDescriptionStaticZoneItemIterable
(AmetysObjectIterable<? extends ZoneItem> iterable) Construct a StaticZoneItemIterable, wrapping an iterable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the associated resources.
AnAmetysObjectIterable
must NOT be closed if any of the containedAmetysObject
is still in use.long
getSize()
Returns the number of elements in this iterable.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObjectIterable
spliterator, stream
-
Field Details
-
_iterable
The wrapped iterable.
-
-
Constructor Details
-
StaticZoneItemIterable
Construct a StaticZoneItemIterable, wrapping an iterable.- Parameters:
iterable
- zone item iterable.
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceAmetysObjectIterable<StaticZoneItem>
- Specified by:
iterator
in interfaceIterable<StaticZoneItem>
-
getSize
Description copied from interface:AmetysObjectIterable
Returns the number of elements in this iterable. If this information is unavailable, returns -1.- Specified by:
getSize
in interfaceAmetysObjectIterable<StaticZoneItem>
- Returns:
- a long
-
close
Description copied from interface:AmetysObjectIterable
Close the associated resources.
AnAmetysObjectIterable
must NOT be closed if any of the containedAmetysObject
is still in use.- Specified by:
close
in interfaceAmetysObjectIterable<StaticZoneItem>
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-