|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.ArrayAccess
public class ArrayAccess
A wrapper for an Object[]
array so that it may be sorted with the
static sort methods in Sort
VectorAccess
,
Sort
,
Serialized FormConstructor Summary | |
---|---|
ArrayAccess(java.lang.Object[] array)
Construct an ArrayAccess object which wraps an Object array. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone the object. |
int |
count()
Returns the number of items in the array |
java.lang.Object |
get(int index)
Get a value via an integer index. |
void |
set(int index,
java.lang.Object object)
Set a value via an integer index. |
Constructor Detail |
---|
public ArrayAccess(java.lang.Object[] array)
array
- an object array.Method Detail |
---|
public java.lang.Object get(int index)
get
in interface IndexedGetInterface
index
- the index of the item to fetch.
java.lang.IndexOutOfBoundsException
- The implementor of this interface may throw
this RuntimeException if the index is not valid.public void set(int index, java.lang.Object object)
set
in interface IndexedSetInterface
index
- the index of the item to storeObject
- the object to store or associate with the index.
java.lang.IndexOutOfBoundsException
- The implementor of this interface may throw
this RuntimeException if the index is not valid.public int count()
count
in interface com.sas.util.Countable
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface com.sas.PublicClonable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the clone fails.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |