public class KeyedList<V> extends java.lang.Object implements ElementWriter
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashSet<java.lang.String> |
duplicateShorts |
(package private) int |
inewid |
(package private) java.lang.Class |
itemClass |
(package private) java.util.HashMap<java.lang.String,V> |
itemHM |
(package private) java.util.ArrayList<V> |
items |
(package private) java.util.ArrayList<java.lang.String> |
keyCache |
(package private) java.util.ArrayList<ListWatcher> |
listWatchers |
(package private) java.util.HashMap<java.lang.String,java.lang.String> |
shortToFullHM |
Constructor and Description |
---|
KeyedList() |
KeyedList(java.util.ArrayList<V> elts) |
KeyedList(java.lang.Class c) |
KeyedList(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
add(V v) |
void |
addAll(java.util.ArrayList<V> elts) |
void |
addItem(V obj) |
private void |
addKey(java.lang.String s) |
void |
addListWatcher(ListWatcher lw) |
private java.lang.String |
addToHM(V obj) |
void |
dump() |
V |
get(java.lang.String s) |
java.util.ArrayList<V> |
getDescendants(java.lang.String rtid) |
V |
getFirst() |
java.lang.String |
getFullID(java.lang.String sid) |
java.util.ArrayList<V> |
getItems() |
java.util.ArrayList<V> |
getItems(java.util.ArrayList<java.lang.String> ks) |
java.util.ArrayList<V> |
getItems(java.lang.String[] ks) |
java.util.ArrayList<java.lang.String> |
getKeys() |
java.lang.String[] |
getKeysArray() |
V |
getOrMake(java.lang.String s) |
java.util.ArrayList<java.lang.String> |
getShortKeys() |
java.lang.String[] |
getShortKeysArray() |
boolean |
hasFullID(java.lang.String sid) |
boolean |
hasItem(java.lang.String s) |
Element |
makeElement(ElementFactory ef,
Elementizer eltz) |
java.lang.String |
newName(java.lang.String root) |
java.lang.String |
printIDs() |
void |
put(java.lang.String s,
V v) |
void |
putNew(java.lang.String sid,
V psc) |
void |
quietSuperceded(V old) |
void |
remove(java.lang.String s) |
void |
remove(V obj) |
private void |
removeKey(java.lang.String s) |
void |
removeListWatcher(ListWatcher lw) |
void |
reportChange() |
void |
silentAddItem(V obj) |
int |
size() |
void |
superceded(V old) |
java.util.ArrayList<V> items
java.util.HashMap<java.lang.String,V> itemHM
java.lang.Class itemClass
java.util.ArrayList<java.lang.String> keyCache
java.util.HashMap<java.lang.String,java.lang.String> shortToFullHM
java.util.HashSet<java.lang.String> duplicateShorts
int inewid
java.util.ArrayList<ListWatcher> listWatchers
public KeyedList()
public KeyedList(java.lang.String s)
public KeyedList(java.lang.Class c)
public KeyedList(java.util.ArrayList<V> elts)
public void add(V v)
public void addAll(java.util.ArrayList<V> elts)
public java.util.ArrayList<V> getItems(java.lang.String[] ks)
public java.util.ArrayList<V> getItems(java.util.ArrayList<java.lang.String> ks)
public java.util.ArrayList<V> getItems()
public void silentAddItem(V obj)
public void addItem(V obj)
private java.lang.String addToHM(V obj)
public void remove(V obj)
public void put(java.lang.String s, V v)
public void putNew(java.lang.String sid, V psc)
public boolean hasItem(java.lang.String s)
public V get(java.lang.String s)
public V getOrMake(java.lang.String s)
public void superceded(V old)
public void quietSuperceded(V old)
public V getFirst()
public Element makeElement(ElementFactory ef, Elementizer eltz)
makeElement
in interface ElementWriter
public java.util.ArrayList<java.lang.String> getKeys()
public java.util.ArrayList<java.lang.String> getShortKeys()
public void remove(java.lang.String s)
private void removeKey(java.lang.String s)
private void addKey(java.lang.String s)
public boolean hasFullID(java.lang.String sid)
public java.lang.String getFullID(java.lang.String sid)
public java.lang.String printIDs()
public void dump()
public java.lang.String[] getKeysArray()
public java.lang.String[] getShortKeysArray()
public java.util.ArrayList<V> getDescendants(java.lang.String rtid)
public java.lang.String newName(java.lang.String root)
public void removeListWatcher(ListWatcher lw)
public void reportChange()
public void addListWatcher(ListWatcher lw)
public int size()
Copyright © 2013. All Rights Reserved.