public interface InstanceCollection extends InstanceResolver
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_SIZE
Constant for unknown collection size
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasSize()
States if the collection has a known size.
|
boolean |
isEmpty()
States if the collection has no instances.
|
ResourceIterator<Instance> |
iterator()
Get an iterator over all instances contained in the collection.
|
InstanceCollection |
select(Filter filter)
Select the instances in the collection, matching the given filter.
|
int |
size()
Get the collection size if known.
|
getInstance, getReference
static final int UNKNOWN_SIZE
ResourceIterator<Instance> iterator()
ResourceIterator.close()
).boolean hasSize()
int size()
UNKNOWN_SIZE
hasSize()
boolean isEmpty()
hasSize()
returns false.InstanceCollection select(Filter filter)
filter
- the instance filterBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a