sleep.runtime

Class MapWrapper

Implemented Interfaces:
ScalarHash, Serializable

public class MapWrapper
extends Object
implements ScalarHash

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 returned as scalar strings

Field Summary

protected Map
values

Constructor Summary

MapWrapper(Map _values)

Method Summary

Scalar
getAt(Scalar key)
ScalarArray
keys()
this operation is kind of expensive...
void
remove(Scalar key)
String
toString()

Field Details

values

protected Map values

Constructor Details

MapWrapper

public MapWrapper(Map _values)

Method Details

getAt

public Scalar getAt(Scalar key)
Specified by:
getAt in interface ScalarHash

keys

public ScalarArray keys()
this operation is kind of expensive... should be fixed up to take care of that
Specified by:
keys in interface ScalarHash

remove

public void remove(Scalar key)
Specified by:
remove in interface ScalarHash

toString

public String toString()