T - The contained data type.public interface IWebResourceSet<T extends com.helger.html.resource.IHTMLResourceProvider>
extends com.helger.commons.collection.impl.ICommonsIterable<T>
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
addItem(int nIndex,
T aItem)
Add an item at the specified index
|
com.helger.commons.state.EChange |
addItem(T aItem)
Add an item
|
com.helger.commons.state.EChange |
addItems(int nIndex,
IWebResourceSet<? extends T> aItems)
Add all items from another list at the specified index.
|
com.helger.commons.state.EChange |
addItems(IWebResourceSet<? extends T> aItems)
Add all items from another list.
|
com.helger.commons.collection.impl.ICommonsOrderedSet<T> |
getAllItems() |
void |
getAllItems(Collection<? super T> aTarget)
Add all items to the provided target container.
|
boolean |
isEmpty() |
boolean |
isNotEmpty() |
void |
markAsCollected()
Call this method to mark the resource set as "collected for further
processing".
|
com.helger.commons.state.EChange |
removeAll()
Remove all items.
|
com.helger.commons.state.EChange |
removeItem(T aItem)
Unregister an existing item
|
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountforEach, iterator, spliterator@Nonnull com.helger.commons.state.EChange addItem(@Nonnull T aItem)
aItem - The item to add. May not be null.EChange@Nonnull com.helger.commons.state.EChange addItem(int nIndex, @Nonnull T aItem)
nIndex - The index to be used. If the value is < 0 the value is ignored
and item is appended.aItem - The item to add. May not be null.EChange@Nonnull com.helger.commons.state.EChange addItems(@Nonnull IWebResourceSet<? extends T> aItems)
aItems - The items to be added. May not be null.EChange@Nonnull com.helger.commons.state.EChange addItems(int nIndex, @Nonnull IWebResourceSet<? extends T> aItems)
nIndex - The index to be used. If the value is < 0 the value is ignored
and item is appended.aItems - The items to be added. May not be null.EChange@Nonnull com.helger.commons.state.EChange removeItem(@Nonnull T aItem)
aItem - The item to be removed. May not be null.EChange@Nonnull com.helger.commons.state.EChange removeAll()
EChange@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsOrderedSet<T> getAllItems()
null set with all items.void getAllItems(@Nonnull Collection<? super T> aTarget)
aTarget - The container to add the items to. May not be null.void markAsCollected()
boolean isEmpty()
true if no item is containedboolean isNotEmpty()
true if at least a single item is containedCopyright © 2014–2023 Philip Helger. All rights reserved.