|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoot.util.UnitMap
public abstract class UnitMap
Maps each unit to the result of mapTo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
UnitMap(Body b)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized without any parameter. |
|
UnitMap(Body b,
int initialCapacity)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity. |
|
UnitMap(Body b,
int initialCapacity,
float loadFactor)
maps each unit of this body to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity and
loadFactor. |
|
UnitMap(UnitGraph g)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized without any parameter. |
|
UnitMap(UnitGraph g,
int initialCapacity)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity. |
|
UnitMap(UnitGraph g,
int initialCapacity,
float loadFactor)
maps each unit of the graph to the result of mapTo.before the mapping the method init is called.the internal hashtable is initialized to initialCapacity and
loadFactor. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object key)
|
int |
hashCode()
|
protected void |
init()
allows one-time initialization before any mapping. |
boolean |
isEmpty()
|
Set<Object> |
keySet()
|
protected abstract Object |
mapTo(Unit unit)
maps a unit to an object. |
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
Collection<Object> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitMap(Body b)
mapTo.init is called.
b - a Bodypublic UnitMap(UnitGraph g)
mapTo.init is called.
g - a UnitGraph
public UnitMap(Body b,
int initialCapacity)
mapTo.init is called.initialCapacity.
b - a BodyinitialCapacity - the initialCapacity of the internal hashtable.
public UnitMap(UnitGraph g,
int initialCapacity)
mapTo.init is called.initialCapacity.
g - a UnitGraphinitialCapacity - the initialCapacity of the internal hashtable.
public UnitMap(Body b,
int initialCapacity,
float loadFactor)
mapTo.init is called.initialCapacity and
loadFactor.
b - a BodyinitialCapacity - the initialCapacity of the internal hashtable.loadFactor - the loadFactor of the internal hashtable.
public UnitMap(UnitGraph g,
int initialCapacity,
float loadFactor)
mapTo.init is called.initialCapacity and
loadFactor.
g - a UnitGraphinitialCapacity - the initialCapacity of the internal hashtable.loadFactor - the loadFactor of the internal hashtable.| Method Detail |
|---|
protected void init()
protected abstract Object mapTo(Unit unit)
null no object will be mapped.
the - Unit to which o should be mapped.
null.public void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set entrySet()
entrySet in interface Mappublic boolean equals(Object o)
equals in interface Mapequals in class Objectpublic Object get(Object key)
get in interface Mappublic int hashCode()
hashCode in interface MaphashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Mappublic Set<Object> keySet()
keySet in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic void putAll(Map t)
putAll in interface Mappublic Object remove(Object key)
remove in interface Mappublic int size()
size in interface Mappublic Collection<Object> values()
values in interface Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||