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.ObjectA wrapper class representing the key for an alarm/component/subsystem/system
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKey.AlarmKeyRepresents unique alarm in the given subsystem and component e.g.static classKey.AlarmKey$static classKey.ComponentKeyRepresents a key for all the alarms of a componentstatic classKey.ComponentKey$static classKey.GlobalKey$Represents all the alarms available in the systemstatic classKey.SubsystemKeyRepresents a key for all the alarms of a subsystemstatic classKey.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 booleanequals(java.lang.Object that)inthashCode()java.lang.Objectself()Equality of the key is based on the subsystem, component and name.java.lang.StringtoString()java.lang.Stringvalue()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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-