@ThreadSafe public class JSResourceSet extends Object implements IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>
| Constructor and Description |
|---|
JSResourceSet() |
JSResourceSet(Collection<? extends com.helger.html.resource.js.IJSPathProvider> aOther) |
JSResourceSet(com.helger.html.resource.js.IJSPathProvider... aOther) |
JSResourceSet(JSResourceSet aOther) |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
addItem(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Add an item
|
com.helger.commons.state.EChange |
addItem(int nIndex,
com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Add an item at the specified index
|
com.helger.commons.state.EChange |
addItems(int nIndex,
IWebResourceSet<? extends com.helger.html.resource.js.IJSPathProvider> aItems)
Add all items from another list at the specified index.
|
com.helger.commons.state.EChange |
addItems(IWebResourceSet<? extends com.helger.html.resource.js.IJSPathProvider> aItems)
Add all items from another list.
|
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> |
getAllItems() |
void |
getAllItems(Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget)
Add all items to the provided target container.
|
int |
getCount() |
int |
hashCode() |
boolean |
isCollected() |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
Iterator<com.helger.html.resource.js.IJSPathProvider> |
iterator() |
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(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Unregister an existing item
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCountforEach, spliteratorpublic JSResourceSet()
public JSResourceSet(@Nonnull JSResourceSet aOther)
public JSResourceSet(@Nonnull Collection<? extends com.helger.html.resource.js.IJSPathProvider> aOther)
public JSResourceSet(@Nonnull com.helger.html.resource.js.IJSPathProvider... aOther)
@Nonnull public com.helger.commons.state.EChange addItem(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
IWebResourceSetaddItem in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>aJSPathProvider - The item to add. May not be null.EChange@Nonnull public com.helger.commons.state.EChange addItem(int nIndex, @Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
IWebResourceSetaddItem in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>nIndex - The index to be used. If the value is < 0 the value is ignored
and item is appended.aJSPathProvider - The item to add. May not be null.EChange@Nonnull public com.helger.commons.state.EChange addItems(@Nonnull IWebResourceSet<? extends com.helger.html.resource.js.IJSPathProvider> aItems)
IWebResourceSetaddItems in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>aItems - The items to be added. May not be null.EChange@Nonnull public com.helger.commons.state.EChange addItems(int nIndex, @Nonnull IWebResourceSet<? extends com.helger.html.resource.js.IJSPathProvider> aItems)
IWebResourceSetaddItems in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>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 public com.helger.commons.state.EChange removeItem(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
IWebResourceSetremoveItem in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>aJSPathProvider - The item to be removed. May not be null.EChange@Nonnull public com.helger.commons.state.EChange removeAll()
IWebResourceSetremoveAll in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>EChange@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> getAllItems()
getAllItems in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>null set with all items.public void getAllItems(@Nonnull Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget)
IWebResourceSetgetAllItems in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>aTarget - The container to add the items to. May not be null.public boolean isEmpty()
isEmpty in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>true if no item is containedpublic boolean isNotEmpty()
isNotEmpty in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>true if at least a single item is contained@Nonnegative public int getCount()
getCount in interface com.helger.commons.collection.impl.ICommonsIterable<com.helger.html.resource.js.IJSPathProvider>public boolean isCollected()
public void markAsCollected()
IWebResourceSetmarkAsCollected in interface IWebResourceSet<com.helger.html.resource.js.IJSPathProvider>Copyright © 2014–2023 Philip Helger. All rights reserved.