|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VectorIfc
This interface abstracts a persistent capable Vector data structure so that it can be mapped by various datastores. It basically uses the JDK1.1.2 java.util.Vector to derive the interface and applies only to PersistentCapableIfc instances.
Note that the object is also Serializable
Method Summary | |
---|---|
void |
add(int index,
PersistentCapableIfc element)
Add the element at the specified index |
boolean |
add(PersistentCapableIfc element)
Add the specified element to the end of the Vector |
void |
addElement(PersistentCapableIfc element)
Add the specified element to the end of the vector |
void |
clear()
Clear the vector |
boolean |
contains(PersistentCapableIfc element)
Test to see whether the specified object exists |
PersistentCapableIfc |
elementAt(int index)
Return the object at the specified index or null if one does not exist |
java.util.Enumeration |
elements()
Return an enumeration of all elements in the Vector |
PersistentCapableIfc |
firstElement()
Return the first element in the Vector or null if it is empty |
PersistentCapableIfc |
get(int index)
Return the object at the specified index or null |
int |
indexOf(PersistentCapableIfc element)
Return the index of the specified element or -1 if it does notr exist |
boolean |
isEmpty()
Check to see of the vector is empty. |
PersistentCapableIfc |
lastElement()
Return the last element in the Vector or null if it is empty |
PersistentCapableIfc |
remove(int index)
Remove the element at the specified index and return it to the client |
boolean |
remove(PersistentCapableIfc element)
Remove the specified element from the Vector |
void |
removeAllElements()
Remove all the elements from the Vector. |
boolean |
removeElement(PersistentCapableIfc element)
Remove the specified element from the Vector. |
void |
removeElementAt(int index)
Remove the element at the specified index |
void |
set(int index,
PersistentCapableIfc element)
Set the object at the location given, overwriting the existing object if it exists. |
int |
size()
Return the size of the vector |
java.lang.Object[] |
toArray()
Return the objects in the Vector as an array. |
Methods inherited from interface org.exolab.core.foundation.PersistentCapableIfc |
---|
getMinimumObjectSize, getObjectId, getObjectVersion, setMinimumObjectSize |
Method Detail |
---|
int size()
boolean isEmpty()
java.util.Enumeration elements()
boolean contains(PersistentCapableIfc element)
element
- element to test for
int indexOf(PersistentCapableIfc element)
element
- element to search for
PersistentCapableIfc elementAt(int index)
index
- index to query on
PersistentCapableIfc firstElement()
PersistentCapableIfc lastElement()
void removeElementAt(int index)
index
- index of element to removevoid addElement(PersistentCapableIfc element)
element
- element to addboolean removeElement(PersistentCapableIfc element)
element
- element to removevoid removeAllElements()
java.lang.Object[] toArray()
PersistentCapableIfc get(int index)
boolean add(PersistentCapableIfc element)
element
- element to add
void set(int index, PersistentCapableIfc element)
index
- indexelement
- element to addboolean remove(PersistentCapableIfc element)
element
- element to remove
void add(int index, PersistentCapableIfc element)
index
- indexelement
- element to addPersistentCapableIfc remove(int index)
index
- index to query
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |