org.apache.tools.ant.types.resources

Class SizeLimitCollection

public abstract class SizeLimitCollection extends BaseResourceCollectionWrapper

ResourceCollection that imposes a size limit on another ResourceCollection.

Since: Ant 1.7.1

Method Summary
intgetCount()
Get the number of resources to be included.
protected intgetValidCount()
Get the count, verifying it is >= 0.
voidsetCount(int i)
Set the number of resources to be included.
intsize()
Efficient size implementation.

Method Detail

getCount

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

Returns: the count as int.

getValidCount

protected int getValidCount()
Get the count, verifying it is >= 0.

Returns: int count

setCount

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

Parameters: i the count as int.

size

public int size()
Efficient size implementation.

Returns: int size