public class AllButLast extends SizeLimitCollection
count elements, a la
the UNIX head command with parameter -n -count.description, location, project| Constructor and Description |
|---|
AllButLast() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<Resource> |
getCollection()
Take all elements except for the last
count elements. |
int |
size()
Efficient size implementation.
|
getCount, getValidCount, setCountcreateIterator, getSizeadd, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, toStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectprotected java.util.Collection<Resource> getCollection()
count elements.getCollection in class BaseResourceCollectionWrapperpublic int size()
SizeLimitCollectionsize in interface ResourceCollectionsize in class SizeLimitCollection