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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setComment
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
items
The list holding the items.
-
-
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:
true
if the list is empty.
-
toString
- Overrides:
toString
in classCommentable
-