T
- Type of structurespublic interface MasterStorage<T> extends Serializable
Typically retrieval of individual structures can be slow (in ms range) compared to descriptor comparison/screening speed requirements. Intended usage is provide visual display of structures in a user interface.
It is possible that certain structures are not retrievable; clients must be prepared for the handling of missing structures.
Modifier and Type | Method and Description |
---|---|
default boolean |
areAllAbsent()
Check for all absent.
|
Optional<T> |
get(int index)
Get given structure identified with an index.
|
int |
getAbsentCount()
Number of absent structures.
|
Class<T> |
getStoredType()
Represented type.
|
boolean |
isPresent(int index)
Check if given entity is present.
|
int |
size()
Number of structures in the storage.
|
int size()
int getAbsentCount()
default boolean areAllAbsent()
true
when are elements are absentboolean isPresent(int index) throws IndexOutOfBoundsException
index
- Structure indextrue
when structure is presentIndexOutOfBoundsException
- when index is less than 0
or greater or equal than size()
Optional<T> get(int index) throws IndexOutOfBoundsException
index
- Structure indexIndexOutOfBoundsException
- when index is less than 0
or greater or equal than size()