|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple interface (simpler than List) for accessing random-access objects without changing their size. Adhered to by Bag, IntBag, and DoubleBag
Method Summary | |
java.lang.Class |
componentType()
Should return the base component type for this Indexed object, or null if the component type should be queried via getValue(index).getClass.getComponentType() |
java.lang.Object |
getValue(int index)
Throws an IndexOutOfBoundsException if index is inappropriate. |
java.lang.Object |
set(int index,
java.lang.Object value)
Throws an IndexOutOfBoundsException if index is inappropriate, and IllegalArgumentException if the value is inappropriate |
int |
size()
|
Method Detail |
public java.lang.Class componentType()
public int size()
public java.lang.Object set(int index, java.lang.Object value) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
java.lang.IndexOutOfBoundsException
java.lang.IllegalArgumentException
public java.lang.Object getValue(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |