|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PropertyType
- the type of properties this container shall storepublic interface LaraContainer<PropertyType extends LaraProperty<? extends PropertyType,?>>
Defines methods to retrieve information about a container regarding its capacity and its degree of capacity utilisation.
Field Summary | |
---|---|
static int |
UNLIMITED_CAPACITY
A constant to indicate that a storage has (virtually) unlimited capacity. |
Method Summary | |
---|---|
int |
getCapacity()
Returns the capacity of this container, i.e. the number of items that can be stored or UNLIMITED_CAPACITY (the default) if it is
(virtually) unlimited. |
int |
getSize()
Returns the current size, i.e. the number of items currently stored. |
boolean |
isEmpty()
Returns true, if and only if this container is empty. |
boolean |
isFull()
Returns true, if and only if this container is full (see also LaraCapacityManager ). |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Field Detail |
---|
static final int UNLIMITED_CAPACITY
Method Detail |
---|
int getCapacity()
UNLIMITED_CAPACITY
(the default) if it is
(virtually) unlimited.
int getSize()
boolean isEmpty()
boolean isFull()
LaraCapacityManager
).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |