|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- public interface IndexInterface<E>
Minimalist interface for implementations of Index. This interface should allow Index and OAIndex to be used interchangeably in certain contexts. Originally extracted from util.Index on 3/13/2007
Field Summary | |
---|---|
static int |
INVALID_ENTRY
|
Method Summary | |
---|---|
boolean |
contains(Object o)
|
E |
get(int i)
Gets the object whose index is the integer argument. |
int |
indexOf(E o)
Returns the integer index of the Object in the Index or -1 if the Object is not already in the Index. |
int |
indexOf(E o,
boolean add)
Takes an Object and returns the integer index of the Object, perhaps adding it to the index first. |
int |
size()
Returns the number of indexed objects. |
Field Detail |
---|
static final int INVALID_ENTRY
Method Detail |
---|
int size()
E get(int i)
i
- the integer index to be queried for the corresponding argument
int indexOf(E o)
o
- the Object whose index is desired.
int indexOf(E o, boolean add)
o
- the Object whose index is desired.add
- Whether it is okay to add new items to the index
boolean contains(Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |