Class First
- All Implemented Interfaces:
- Cloneable,- Iterable<Resource>,- ResourceCollection
ResourceCollection that contains the first 
count elements of
 another ResourceCollection, a la the UNIX head command.- Since:
- Ant 1.7
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.types.resources.SizeLimitCollectiongetCount, getValidCount, setCount, sizeMethods inherited from class org.apache.tools.ant.types.resources.BaseResourceCollectionWrappercreateIterator, getSizeMethods inherited from class org.apache.tools.ant.types.resources.AbstractResourceCollectionWrapperadd, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, 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- 
Firstpublic First()
 
- 
- 
Method Details- 
getCollectionTake the firstcountelements.- Specified by:
- getCollectionin class- BaseResourceCollectionWrapper
- Returns:
- a Collection of Resources.
 
 
-