Package com.microstrategy.utils
Class KeyedList<T extends KeyedObject>
- java.lang.Object
-
- com.microstrategy.utils.KeyedList<T>
-
public class KeyedList<T extends KeyedObject> extends java.lang.Object
- Since:
- MicroStrategy Web 8.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T ob)
void
add(KeyedList<T> list)
void
add(T ob)
void
add(T ob, java.lang.Object beforeKey)
void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsObject(KeyedObject ob)
java.util.Enumeration<T>
elements()
T
get(int index)
T
get(java.lang.Object key)
java.util.List<T>
getList()
int
indexOf(java.lang.Object ob)
int
indexOfKey(java.lang.Object key)
boolean
isEmpty()
java.util.Iterator<T>
iterator()
java.util.Set
keySet()
void
moveByKey(java.lang.Object key, java.lang.Object keyBefore)
int
moveByOffset(java.lang.String key, int offset)
void
moveTo(java.lang.String key, int position)
java.lang.Object
put(T ob)
T
remove(int index)
boolean
remove(KeyedObject ob)
T
removeByKey(java.lang.Object key)
T
replace(T ob)
void
set(int index, T ob)
int
size()
void
sort(java.util.Comparator comparator)
static <X extends KeyedObject>
KeyedList<X>unmodifieable(KeyedList<X> list)
-
-
-
Method Detail
-
add
public void add(int index, T ob)
-
add
public void add(T ob)
-
add
public void add(T ob, java.lang.Object beforeKey)
-
clear
public void clear()
-
containsObject
public boolean containsObject(KeyedObject ob)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
get
public T get(java.lang.Object key)
-
get
public T get(int index)
-
indexOf
public int indexOf(java.lang.Object ob)
-
indexOfKey
public int indexOfKey(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
elements
public java.util.Enumeration<T> elements()
-
iterator
public java.util.Iterator<T> iterator()
-
keySet
public java.util.Set keySet()
- Since:
- MicroStrategy Web 9.0.0
-
moveByKey
public void moveByKey(java.lang.Object key, java.lang.Object keyBefore)
-
moveTo
public void moveTo(java.lang.String key, int position)
- Since:
- MicroStrategy Web 9.0.0
-
moveByOffset
public int moveByOffset(java.lang.String key, int offset)
- Since:
- MicroStrategy Web 9.0.0
-
put
public java.lang.Object put(T ob)
-
remove
public T remove(int index)
-
remove
public boolean remove(KeyedObject ob)
-
removeByKey
public T removeByKey(java.lang.Object key)
-
set
public void set(int index, T ob)
-
size
public int size()
-
sort
public void sort(java.util.Comparator comparator)
-
getList
public java.util.List<T> getList()
- Since:
- MicroStrategy Web 9.0.0
-
unmodifieable
public static <X extends KeyedObject> KeyedList<X> unmodifieable(KeyedList<X> list)
-
-