Package com.helger.photon.app.html
Interface IWebResourceSet<T extends com.helger.html.resource.IHTMLResourceProvider>
- Type Parameters:
T- The contained data type.
- All Superinterfaces:
com.helger.commons.collection.impl.ICommonsIterable<T>,Iterable<T>
- All Known Implementing Classes:
CSSResourceSet,JSResourceSet
public interface IWebResourceSet<T extends com.helger.html.resource.IHTMLResourceProvider>
extends com.helger.commons.collection.impl.ICommonsIterable<T>
Base interface for CSS and JS resource sets.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.EChangeAdd an item at the specified indexcom.helger.commons.state.EChangeAdd an itemcom.helger.commons.state.EChangeaddItems(int nIndex, IWebResourceSet<? extends T> aItems) Add all items from another list at the specified index.com.helger.commons.state.EChangeaddItems(IWebResourceSet<? extends T> aItems) Add all items from another list.com.helger.commons.collection.impl.ICommonsOrderedSet<T>voidgetAllItems(Collection<? super T> aTarget) Add all items to the provided target container.booleanisEmpty()booleanvoidCall this method to mark the resource set as "collected for further processing".com.helger.commons.state.EChangeRemove all items.com.helger.commons.state.EChangeremoveItem(T aItem) Unregister an existing itemMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
addItem
Add an item- Parameters:
aItem- The item to add. May not benull.- Returns:
EChange
-
addItem
Add an item at the specified index- Parameters:
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 benull.- Returns:
EChange
-
addItems
Add all items from another list.- Parameters:
aItems- The items to be added. May not benull.- Returns:
EChange
-
addItems
@Nonnull com.helger.commons.state.EChange addItems(int nIndex, @Nonnull IWebResourceSet<? extends T> aItems) Add all items from another list at the specified index.- Parameters:
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 benull.- Returns:
EChange
-
removeItem
Unregister an existing item- Parameters:
aItem- The item to be removed. May not benull.- Returns:
EChange
-
removeAll
Remove all items.- Returns:
EChange
-
getAllItems
- Returns:
- A non-
nullset with all items.
-
getAllItems
Add all items to the provided target container.- Parameters:
aTarget- The container to add the items to. May not benull.
-
markAsCollected
void markAsCollected()Call this method to mark the resource set as "collected for further processing". This state may be used to determine additions afterwards which will potentially not be gathered. -
isEmpty
boolean isEmpty()- Returns:
trueif no item is contained
-
isNotEmpty
boolean isNotEmpty()- Returns:
trueif at least a single item is contained
-