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
Fields Modifier and Type Field Description protected AmetysObjectIterable<? extends ZoneItem>
_iterable
The wrapped iterable.
-
Constructor Summary
Constructors Constructor Description StaticZoneItemIterable(AmetysObjectIterable<? extends ZoneItem> iterable)
Construct a StaticZoneItemIterable, wrapping an iterable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.AmetysObjectIterator<StaticZoneItem>
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 Detail
-
_iterable
protected AmetysObjectIterable<? extends ZoneItem> _iterable
The wrapped iterable.
-
-
Constructor Detail
-
StaticZoneItemIterable
public StaticZoneItemIterable(AmetysObjectIterable<? extends ZoneItem> iterable)
Construct a StaticZoneItemIterable, wrapping an iterable.- Parameters:
iterable
- zone item iterable.
-
-
Method Detail
-
iterator
public AmetysObjectIterator<StaticZoneItem> iterator()
- Specified by:
iterator
in interfaceAmetysObjectIterable<StaticZoneItem>
- Specified by:
iterator
in interfaceIterable<StaticZoneItem>
-
getSize
public long 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
public void 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
-
-