org.apache.tools.ant.types.resources

Class First

public class First extends BaseResourceCollectionWrapper

ResourceCollection that contains the first count elements of another ResourceCollection.

Since: Ant 1.7

Method Summary
protected CollectiongetCollection()
Take the first count elements.
intgetCount()
Get the number of resources to be included.
voidsetCount(int i)
Set the number of resources to be included.

Method Detail

getCollection

protected Collection getCollection()
Take the first count elements.

Returns: a Collection of Resources.

getCount

public int getCount()
Get the number of resources to be included. Default is 1.

Returns: the count as int.

setCount

public void setCount(int i)
Set the number of resources to be included.

Parameters: i the count as int.