public class QualifiedFrame extends Hashtable implements Frame
Constructor and Description |
---|
QualifiedFrame(String typeName)
Create a QualifiedFrame with a given type-name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(Object key)
Utility method to retrieve a value of type
boolean from this
Frame. |
int |
getInteger(Object key)
Utility method to retrieve a value of type
int from this
Frame. |
String |
getTypeName()
Retrieve the type-name of this QualifiedFrame.
|
Object |
put(Object key,
Object val)
Redefine the put() method so that keys must be String and
setting a null value for a given key is interpreted as
removing the entry.
|
Object |
putBoolean(Object key,
boolean val)
Utility method to put a value of type
boolean in this
Frame. |
Object |
putInteger(Object key,
int val)
Utility method to put a value of type
int in this
Frame. |
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
private String typeName
public QualifiedFrame(String typeName)
typeName
- The type-name of the QualifiedFrame to be created.public String getTypeName()
getTypeName
in interface Frame
public Object put(Object key, Object val)
put
in interface Map
put
in class Hashtable
ClassCastException
- if key
is not a Stringpublic Object putInteger(Object key, int val)
int
in this
Frame.public int getInteger(Object key)
int
from this
Frame.public Object putBoolean(Object key, boolean val)
boolean
in this
Frame.public boolean getBoolean(Object key)
boolean
from this
Frame.