|
| 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 Form| Constructor 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 IndexedGetInterfaceindex - 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 IndexedSetInterfaceindex - 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.PublicClonableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the clone fails.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||