public class CommentedAlarmMap
extends java.lang.Object
implements java.io.Serializable
CommentedAlarm,
Comment,
Serialized Form| Constructor and Description |
|---|
CommentedAlarmMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this hashtable so that it contains no alarms.
|
boolean |
containsKey(java.lang.String alarmId)
Tests if the specified alarm is a key in this hashtable.
|
CommentedAlarm |
get(java.lang.String alarmId)
Returns the commented alarm to which the specified alarm identifier is mapped in this hashtable.
|
boolean |
isEmpty()
Tests if this hashtable maps no alarms to comments.
|
CommentedAlarm |
put(CommentedAlarm alarm)
Maps the specified commented alarm in this hashtable.
|
void |
putAll(CommentedAlarmMap alarms)
Copies all the mappings from the specified CommentedAlarmMap to this one.
|
CommentedAlarm |
remove(java.lang.String alarmId)
Removes the commented alarm to which the specified alarm identifeir is mapped in this hashtable.
|
int |
size()
Returns the number of commented alarms in this hashtable.
|
java.lang.String |
toString()
Returns a string representation.
|
java.util.Collection |
values()
Returns a collection of the commented alarms in this hashtable.
|
public CommentedAlarm put(CommentedAlarm alarm)
alarm - the commented alarm.public void putAll(CommentedAlarmMap alarms)
alarms - the commented alarm map.public CommentedAlarm get(java.lang.String alarmId)
alarmId - the alarm identifier.public CommentedAlarm remove(java.lang.String alarmId)
alarmId - the alarm to remove.public boolean containsKey(java.lang.String alarmId)
alarmId - the alarm to check.public void clear()
public boolean isEmpty()
public java.util.Collection values()
public int size()
public java.lang.String toString()
toString in class java.lang.Object