public class SortedVector extends Object
| Constructor and Description |
|---|
SortedVector(ObjectComparator cmpr) |
SortedVector(ObjectComparator cmpr,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addElement(Object obj) |
Object |
elementAt(int index) |
Enumeration |
elements() |
int |
indexOf(Object obj) |
boolean |
insertElementAt(Object obj,
int index) |
boolean |
isIndexValid(int index,
Object obj) |
void |
removeAllElements() |
Object |
removeElementAt(int index) |
void |
setElementAt(Object obj,
int index) |
int |
size() |
public SortedVector(ObjectComparator cmpr)
public SortedVector(ObjectComparator cmpr, int capacity)
public int addElement(Object obj) throws ObjectInvalid
ObjectInvalidpublic int size()
public Object elementAt(int index)
public Enumeration elements()
public Object removeElementAt(int index)
public void removeAllElements()
public int indexOf(Object obj) throws ObjectInvalid
ObjectInvalidpublic void setElementAt(Object obj, int index) throws ObjectInvalid
ObjectInvalidpublic boolean isIndexValid(int index,
Object obj)
throws ObjectInvalid
ObjectInvalidpublic boolean insertElementAt(Object obj, int index) throws ObjectInvalid
ObjectInvalidCopyright © 2015 JacORB. All rights reserved.