ResourceCollection: Either stores nested ResourceCollections,
making no attempt to remove duplicates, or references another ResourceCollection.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private Optional | |
| public static final Iterator | EMPTY_ITERATOR
|
| public static final ResourceCollection | NONE
|
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | add(ResourceCollection
the c)ResourceCollection to add.Implements org. ResourceCollection.
|
| protected void | dieOnCircularReference(Stack<Object>
the stack of data types to use (recursively). stk, Project the p)Project to use to dereference the references.Overrides org. DataType
child elements that may have been added.
|
| private synchronized List | |
| private ResourceCollection | Returns: the referencedResourceCollection.Resolves references, allowing any |
| private synchronized Stream | |
| protected void | invalidateExistingIterators()
Allow subclasses to notify existing Iterators they have experienced concurrent modification. |
| public boolean | isFilesystemOnly()
Implements org. ResourceCollection contract.
|
| public synchronized Iterator | |
| public void | |
| public synchronized int | Returns: number of elements asint.Implements org. ResourceCollection contract.
|
| public synchronized String | Returns: a descriptiveString.Overrides org. Resources as a String.
|
| private synchronized void |
| cache | back to summary |
|---|---|
| private volatile boolean cache | |
| cacheColl | back to summary |
|---|---|
| private Optional<Collection<Resource>> cacheColl | |
| EMPTY_ITERATOR | back to summary |
|---|---|
| public static final Iterator<Resource> EMPTY_ITERATOR
| |
| NONE | back to summary |
|---|---|
| public static final ResourceCollection NONE
| |
| rc | back to summary |
|---|---|
| private List<ResourceCollection> rc | |
| Resources | back to summary |
|---|---|
| public Resources() Create a new | |
| Resources | back to summary |
|---|---|
| public Resources(Project project) Create a new | |
| add | back to summary |
|---|---|
| public synchronized void add(ResourceCollection c) Implements org. Add a
| |
| dieOnCircularReference | back to summary |
|---|---|
| protected void dieOnCircularReference(Stack<Object> stk, Project p) throws BuildException Overrides org. Overrides the base implementation to recurse on all | |
| getNested | back to summary |
|---|---|
| private synchronized List | |
| getRef | back to summary |
|---|---|
| private ResourceCollection getRef() Resolves references, allowing any
| |
| internalResources | back to summary |
|---|---|
| private synchronized Stream | |
| invalidateExistingIterators | back to summary |
|---|---|
| protected void invalidateExistingIterators() Allow subclasses to notify existing Iterators they have experienced concurrent modification. | |
| isFilesystemOnly | back to summary |
|---|---|
| public boolean isFilesystemOnly() Implements org. Fulfill the | |
| iterator | back to summary |
|---|---|
| public synchronized Iterator Implements java. Fulfill the | |
| setCache | back to summary |
|---|---|
| public void setCache(boolean b) Set whether to cache collections.
| |
| size | back to summary |
|---|---|
| public synchronized int size() Implements org. Fulfill the
| |
| toString | back to summary |
|---|---|
| public synchronized String toString() Overrides org. Format this | |
| validate | back to summary |
|---|---|
| private synchronized void validate() | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile Collection |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized Collection | |
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| cached | back to summary |
|---|---|
| private volatile Collection<Resource> cached | |
| MyCollection | back to summary |
|---|---|
| private MyCollection() | |
| getCache | back to summary |
|---|---|
| private synchronized Collection | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements contained in this collection. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private Iterator | |
| private Iterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Resource | |
| public void | remove()
Overrides default java. |
| rci | back to summary |
|---|---|
| private Iterator<ResourceCollection> rci | |
| ri | back to summary |
|---|---|
| private Iterator<Resource> ri | |
| MyIterator | back to summary |
|---|---|
| private MyIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Resource next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |