|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICompoundStore<I extends RecordRW>
A compound store is a collection of two or more IStore stores. This interface gives a similar, but reduced interface to IStore.
For example there is a compound store of types, containing vehicle types and transport types. It is possible to pass a name to that compound store to lookup either a vehicle type or a transport types that matches the name
| Method Summary | |
|---|---|
void |
clear()
Clear all objects from store |
Collection<I> |
collection()
Get a collection interface |
List<I> |
list()
Get a list interface |
I |
lookup(int name)
lookup the object in the internal store |
I |
lookup(String name)
lookup the object in the internal store |
I |
remove(I object)
Remove the given object from the store, return the object if succesful, or null if unsuccessful |
int |
size()
The number of elements in the store |
I[] |
toArray(I[] ta)
return elements as an array |
int |
uniqueName()
Return an integer name that is unique amongst all stores making up this compound |
int |
uniqueName(int start)
Return an integer name that is unique amongst all stores making up this compound |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
int size()
Collection<I> collection()
List<I> list()
I[] toArray(I[] ta)
I lookup(String name)
I lookup(int name)
I remove(I object)
void clear()
int uniqueName()
int uniqueName(int start)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||