Class LazyResourceCollectionWrapper
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.resources.AbstractResourceCollectionWrapper
org.apache.tools.ant.types.resources.LazyResourceCollectionWrapper
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection
Resource collection which load underlying resource collection only on demand
 with support for caching
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDo create an iterator on the resource collection.protected booleanSpecify if the resource should be filtered or not.protected intgetSize()Do compute the size of the resource collection.Methods inherited from class org.apache.tools.ant.types.resources.AbstractResourceCollectionWrapperadd, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, size, toStringMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollectionisEmpty, stream
- 
Constructor Details- 
LazyResourceCollectionWrapperpublic LazyResourceCollectionWrapper()
 
- 
- 
Method Details- 
createIteratorDescription copied from class:AbstractResourceCollectionWrapperDo create an iterator on the resource collection. The creation of the iterator is allowed to not be thread safe whereas the iterator itself should. The returned iterator will be wrapped into the FailFast one.- Specified by:
- createIteratorin class- AbstractResourceCollectionWrapper
- Returns:
- the iterator on the resource collection
 
- 
getSizeprotected int getSize()Description copied from class:AbstractResourceCollectionWrapperDo compute the size of the resource collection. The implementation of this function is allowed to be not thread safe.- Specified by:
- getSizein class- AbstractResourceCollectionWrapper
- Returns:
- size of resource collection.
 
- 
filterResourceSpecify if the resource should be filtered or not. This function should be overridden in order to define the filtering algorithm- Parameters:
- r- resource considered for filtration
- Returns:
- whether the resource should be filtered or not
 
 
-