Class First

  extended by
      extended by
          extended by
              extended by
All Implemented Interfaces:
java.lang.Cloneable, ResourceCollection

public class First
extends BaseResourceCollectionWrapper

ResourceCollection that contains the first count elements of another ResourceCollection.

Ant 1.7

Field Summary
Fields inherited from class
checked, ref
Fields inherited from class
description, location, project
Constructor Summary
Method Summary
protected  java.util.Collection getCollection()
          Take the first count elements.
 int getCount()
          Get the number of resources to be included.
 void setCount(int i)
          Set the number of resources to be included.
Methods inherited from class
add, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, size, toString
Methods inherited from class
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes
Methods inherited from class
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public First()
Method Detail


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

i - the count as int.


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

the count as int.


protected java.util.Collection getCollection()
Take the first count elements.

Specified by:
getCollection in class BaseResourceCollectionWrapper
a Collection of Resources.