java.lang.Cloneable
, java.lang.Iterable<Resource>
, ResourceCollection
AllButFirst
, AllButLast
, First
, Last
public abstract class SizeLimitCollection extends BaseResourceCollectionWrapper
description, location, project
Constructor | Description |
---|---|
SizeLimitCollection() |
Modifier and Type | Method | Description |
---|---|---|
int |
getCount() |
Get the number of resources to be included.
|
protected int |
getValidCount() |
Get the count, verifying it is >= 0.
|
void |
setCount(int i) |
Set the number of resources to be included.
|
int |
size() |
Efficient size implementation.
|
add, dieOnCircularReference, getResourceCollection, isCache, isFilesystemOnly, iterator, setCache, toString
createIterator, getCollection, getSize
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
isEmpty, stream
public void setCount(int i)
i
- the count as int
.public int getCount()
int
.public int size()
size
in interface ResourceCollection
size
in class AbstractResourceCollectionWrapper
protected int getValidCount()