|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.VectorAccess
public class VectorAccess
A wrapper for a
so that it may be sorted with the
static sort methods in Vector
Sort
ArrayAccess
,
Sort
,
Serialized FormConstructor Summary | |
---|---|
VectorAccess(java.util.Vector vector)
Construct an VectorAccess object which wraps a java.util.Vector |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone the object. |
int |
count()
Returns the number of items in the vector |
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 VectorAccess(java.util.Vector vector)
vector
- a VectorMethod 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 string comparator cannot be cloned.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |