Package csw.alarm.models
Class Key
- java.lang.Object
-
- csw.alarm.models.Key
-
- Direct Known Subclasses:
Key.AlarmKey
,Key.ComponentKey
,Key.GlobalKey$
,Key.SubsystemKey
public abstract class Key extends java.lang.Object
A wrapper class representing the key for an alarm/component/subsystem/system
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Key.AlarmKey
Represents unique alarm in the given subsystem and component e.g.static class
Key.AlarmKey$
static class
Key.ComponentKey
Represents a key for all the alarms of a componentstatic class
Key.ComponentKey$
static class
Key.GlobalKey$
Represents all the alarms available in the systemstatic class
Key.SubsystemKey
Represents a key for all the alarms of a subsystemstatic class
Key.SubsystemKey$
-
Constructor Summary
Constructors Constructor Description Key(java.lang.String subsystem, java.lang.String component, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
int
hashCode()
java.lang.Object
self()
Equality of the key is based on the subsystem, component and name.java.lang.String
toString()
java.lang.String
value()
Unique value of the key which is combination of subsystem, component and name
-
-
-
Method Detail
-
value
public java.lang.String value()
Unique value of the key which is combination of subsystem, component and name- Returns:
- (undocumented)
-
self
public java.lang.Object self()
Equality of the key is based on the subsystem, component and name. Inlined code from deprecated Proxy class.- Returns:
- (undocumented)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-