CList<T>
, SearchIDList<T>
, java.io.Serializable
, java.lang.Iterable<T>
, java.util.Collection<T>
, java.util.List<T>
, java.util.RandomAccess
CMNSortSVec
, CMSortSVec
public class SortedStrSVector<T> extends SVector<T> implements SearchIDList<T>
Modifier and Type | Class | Description |
---|---|---|
static interface |
SortedStrSVector.Str<T> |
Constructor | Description |
---|---|
SortedStrSVector(SortedStrSVector.Str<T> stringer) |
|
SortedStrSVector(SortedStrSVector.Str<T> stringer,
int size) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int arg0,
T arg1) |
|
boolean |
add(T arg0) |
|
boolean |
addAll(int arg0,
java.util.Collection<? extends T> arg1) |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
T |
find(java.lang.String arg0) |
Searches the sorted list of objects for one with the
given ID;
|
T |
find(T arg0) |
Searches the sorted list of objects for one with the
same ID as the object given.
|
T |
get(int arg0) |
|
int |
indexOf(java.lang.Object arg0) |
|
java.util.Iterator<java.lang.String> |
keyIterator() |
Iterate through the IDs
|
int |
lastIndexOf(java.lang.Object arg0) |
|
boolean |
remove(java.lang.Object arg0) |
|
void |
reSort(T arg0) |
|
T |
set(int arg0,
T arg1) |
addAll, clear, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAll, addAll, addAll, addAll, addElement, capacity, clear, clone, copyInto, copyOf, elementAt, elements, ensureCapacity, equals, firstElement, hashCode, insertElementAt, isEmpty, iterator, lastElement, listIterator, listIterator, remove, removeAll, removeAll, removeAll, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, setElementAt, setSize, size, subList, toArray, toArray, toVector, trimToSize
public SortedStrSVector(SortedStrSVector.Str<T> stringer, int size)
public SortedStrSVector(SortedStrSVector.Str<T> stringer)
public java.util.Iterator<java.lang.String> keyIterator()
SearchIDList
keyIterator
in interface SearchIDList<T>
public boolean add(T arg0)
public void add(int arg0, T arg1)
public boolean addAll(int arg0, java.util.Collection<? extends T> arg1)
public boolean contains(java.lang.Object arg0)
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<T>
containsAll
in interface java.util.List<T>
containsAll
in class SVector<T>
public T get(int arg0)
public void reSort(T arg0)
public int indexOf(java.lang.Object arg0)
public T find(java.lang.String arg0)
SearchIDList
find
in interface SearchIDList<T>
arg0
- the ID of the Object to look forpublic T find(T arg0)
SearchIDList
find
in interface SearchIDList<T>
arg0
- the Object like the one to look forpublic int lastIndexOf(java.lang.Object arg0)
lastIndexOf
in interface java.util.List<T>
lastIndexOf
in class SVector<T>
public boolean remove(java.lang.Object arg0)