|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.runtime.MapWrapper
public class MapWrapper
A class for creating accessing a Map data structure in your application in a ready only way. It is assumed that your map data structure uses strings for keys. Accessed values will be marshalled into Sleep scalars
Field Summary | |
---|---|
protected java.util.Map |
values
|
Constructor Summary | |
---|---|
MapWrapper(java.util.Map _values)
|
Method Summary | |
---|---|
Scalar |
getAt(Scalar key)
Retrieves a scalar from the hashtable. |
java.util.Map |
getData()
Return the data structure backing this hash please |
ScalarArray |
keys()
this operation is kind of expensive... |
void |
rehash(int capacity,
float load)
|
void |
remove(Scalar key)
Removes the specified scalar from the hashmap. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map values
Constructor Detail |
---|
public MapWrapper(java.util.Map _values)
Method Detail |
---|
public Scalar getAt(Scalar key)
ScalarHash
getAt
in interface ScalarHash
public ScalarArray keys()
keys
in interface ScalarHash
public void remove(Scalar key)
ScalarHash
remove
in interface ScalarHash
public java.util.Map getData()
ScalarHash
getData
in interface ScalarHash
public void rehash(int capacity, float load)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |