SearchIDList<T>
, java.lang.Iterable<T>
, java.util.Collection<T>
, java.util.List<T>
CMUniqNameSortListWrapper
public class CMUniqSortListWrapper<T extends CMObject> extends java.lang.Object implements SearchIDList<T>
Constructor | Description |
---|---|
CMUniqSortListWrapper(java.util.List<T> list) |
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 |
addAll(java.util.Collection<? extends T> c) |
|
void |
clear() |
|
protected int |
compareTo(CMObject arg0,
CMObject arg1) |
|
protected int |
compareTo(CMObject arg0,
java.lang.String arg1) |
|
protected int |
compareToLowerStarts(CMObject arg0,
java.lang.String arg1) |
|
protected int |
compareToStarts(CMObject arg0,
java.lang.String arg1) |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
T |
find(CMObject arg0) |
Searches the sorted list of objects for one with the
same ID as the object given.
|
T |
find(java.lang.String arg0) |
Searches the sorted list of objects for one with the
given ID;
|
T |
findStartsWith(java.lang.String arg0) |
|
T |
get(int arg0) |
|
int |
indexOf(java.lang.Object arg0) |
|
boolean |
isEmpty() |
|
java.util.Iterator<T> |
iterator() |
|
java.util.Iterator<java.lang.String> |
keyIterator() |
Iterate through the IDs
|
int |
lastIndexOf(java.lang.Object arg0) |
|
java.util.ListIterator<T> |
listIterator() |
|
java.util.ListIterator<T> |
listIterator(int index) |
|
T |
remove(int index) |
|
boolean |
remove(java.lang.Object arg0) |
|
boolean |
removeAll(java.util.Collection<?> c) |
|
boolean |
retainAll(java.util.Collection<?> c) |
|
T |
set(int arg0,
T arg1) |
|
void |
setReadOnly(boolean trueFalse) |
|
int |
size() |
|
java.util.List<T> |
subList(int fromIndex,
int toIndex) |
|
java.lang.Object[] |
toArray() |
|
<F> F[] |
toArray(F[] a) |
public CMUniqSortListWrapper(java.util.List<T> list)
protected int compareTo(CMObject arg0, java.lang.String arg1)
protected int compareToStarts(CMObject arg0, java.lang.String arg1)
protected int compareToLowerStarts(CMObject arg0, java.lang.String arg1)
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)
public java.util.Iterator<java.lang.String> keyIterator()
SearchIDList
keyIterator
in interface SearchIDList<T extends CMObject>
public int indexOf(java.lang.Object arg0)
public T find(java.lang.String arg0)
SearchIDList
find
in interface SearchIDList<T extends CMObject>
arg0
- the ID of the Object to look forpublic T findStartsWith(java.lang.String arg0)
public T find(CMObject arg0)
SearchIDList
find
in interface SearchIDList<T extends CMObject>
arg0
- the Object like the one to look forpublic int lastIndexOf(java.lang.Object arg0)
public boolean remove(java.lang.Object arg0)
public void setReadOnly(boolean trueFalse)
public int size()
public boolean isEmpty()
public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
public <F> F[] toArray(F[] a)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public T remove(int index)
public java.util.ListIterator<T> listIterator()
public java.util.ListIterator<T> listIterator(int index)