com.alarmpoint.spectrum.data
Class SpectrumWatch
java.lang.Object
com.alarmpoint.spectrum.data.SpectrumWatch
public class SpectrumWatch
- extends java.lang.Object
Simple data object to hold the Spectrum watch data
- Author:
- Mike Bennett
Constructor Summary |
SpectrumWatch(java.lang.String record)
Creates a new instance of the SpectrumWatch |
Method Summary |
boolean |
equals(java.lang.Object other)
Determine if the objects are equal based on the name |
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.String |
getStatus()
|
java.lang.String |
getType()
|
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
|
void |
setStatus(java.lang.String status)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpectrumWatch
public SpectrumWatch(java.lang.String record)
- Creates a new instance of the SpectrumWatch
- Parameters:
record
- String containing the data for this instance
setId
public void setId(java.lang.String id)
getId
public java.lang.String getId()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
setType
public void setType(java.lang.String type)
getType
public java.lang.String getType()
setStatus
public void setStatus(java.lang.String status)
getStatus
public java.lang.String getStatus()
equals
public boolean equals(java.lang.Object other)
- Determine if the objects are equal based on the name
- Overrides:
equals
in class java.lang.Object
- Parameters:
other
- instance of SpectrumWatch to compare against
- Returns:
- true if equal, false otherwise
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object