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, setCount
createIterator, getSize
add, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, toString
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
protected java.util.Collection<Resource> getCollection()
count
elements.getCollection
in class BaseResourceCollectionWrapper
public int size()
SizeLimitCollection
size
in interface ResourceCollection
size
in class SizeLimitCollection