Class ItemList<T>
java.lang.Object
org.apache.sling.provisioning.model.Traceable
org.apache.sling.provisioning.model.Commentable
org.apache.sling.provisioning.model.ItemList<T>
- All Implemented Interfaces:
Iterable<T>
- Direct Known Subclasses:
ArtifactGroup
Helper class to hold a list of items.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setCommentMethods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ItemList
public ItemList()
-
-
Method Details
-
add
Add a new item- Parameters:
item- The new item
-
remove
Remove an item.- Parameters:
item- The item to remove.
-
iterator
-
isEmpty
public boolean isEmpty()Check if the list is empty.- Returns:
trueif the list is empty.
-
toString
- Overrides:
toStringin classCommentable
-