jsr.daemon
Class DaemonAttributes
java.lang.Object
|
+--jsr.daemon.DaemonAttributes
- public class DaemonAttributes
- extends java.lang.Object
synchronized helper class for implementing an attribute mapping for daemons based on the HashMap class
providing for a chronological enumeration returning attributes in their original setting order
so that a command line input sequence is retained for subsequent attribute access
with runtime behaviour and null value support inherited from the HashMap implementation
Constructor Summary |
DaemonAttributes()
default constructor for this attribute mapping |
DaemonAttributes(int initialCapacity)
constructor for this attribute mapping with size estimation |
Method Summary |
java.lang.Object |
get(java.lang.String key)
|
java.util.Enumeration |
keys()
|
void |
put(java.lang.String key,
java.lang.Object value)
method for binding an attribute in this mapping |
void |
remove(java.lang.String key)
method for removing an attribute bound in this mapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaemonAttributes
public DaemonAttributes()
- default constructor for this attribute mapping
DaemonAttributes
public DaemonAttributes(int initialCapacity)
- constructor for this attribute mapping with size estimation
- Parameters:
initialCapacity
- estimated number of attributes in this mapping
put
public void put(java.lang.String key,
java.lang.Object value)
- method for binding an attribute in this mapping
- Parameters:
key
- the key of the attribute to bindvalue
- the value of the attribute to bind
get
public java.lang.Object get(java.lang.String key)
remove
public void remove(java.lang.String key)
- method for removing an attribute bound in this mapping
- Parameters:
key
- the key of the attribute to remove
keys
public java.util.Enumeration keys()