Top Description Constructors Methods
org.apache.tools.ant.types.resources

public Class First

extends SizeLimitCollection
Class Inheritance
Imports
java.util.Collection, java.util.stream.Collectors, org.apache.tools.ant.types.Resource

ResourceCollection that contains the first count elements of another ResourceCollection, a la the UNIX head command.
Since
Ant 1.7

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Collection<Resource>

Returns:

a Collection of Resources.
getCollection
()

Implements abstract org.apache.tools.ant.types.resources.BaseResourceCollectionWrapper.getCollection.

Take the first count elements.
Inherited from org.apache.tools.ant.types.resources.SizeLimitCollection:
getCountgetValidCountsetCountsize

Constructor Detail

Firstback to summary
public First()

Method Detail

getCollectionback to summary
protected Collection<Resource> getCollection()

Implements abstract org.apache.tools.ant.types.resources.BaseResourceCollectionWrapper.getCollection.

Take the first count elements.

Returns:Collection<Resource>

a Collection of Resources.

Annotations
@Override