|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.isti.trinetwatch.station.StationLevelsEntry
public class StationLevelsEntry
Class StationLevelsEntry contains a status and usage level for a station at a given time.
| Field Summary | |
|---|---|
short |
statusLevelIndex
|
int |
timeValue
|
short |
usageLevelIndex
|
| Constructor Summary | |
|---|---|
StationLevelsEntry(int timeVal,
StatusLevelTag sLevelObj,
UsageLevelTag uLevelObj)
Creates a station-levels entry object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.String |
toString()
Returns a string displaying the values held by this entry object. |
boolean |
valuesEquals(int timeVal,
StatusLevelTag sLevelObj,
UsageLevelTag uLevelObj)
Indicates if the given values are equal to the values held by this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int timeValue
public final short statusLevelIndex
public final short usageLevelIndex
| Constructor Detail |
|---|
public StationLevelsEntry(int timeVal,
StatusLevelTag sLevelObj,
UsageLevelTag uLevelObj)
throws java.lang.IllegalArgumentException
timeVal - time value associated with levels.sLevelObj - status-level object, or null for none.uLevelObj - usage-level object, or null for none.
java.lang.IllegalArgumentException - if index value for given status or
usage level is out of range.| Method Detail |
|---|
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the Object to be compared.
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this Object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.
public boolean valuesEquals(int timeVal,
StatusLevelTag sLevelObj,
UsageLevelTag uLevelObj)
timeVal - time value associated with levels.sLevelObj - status-level object.uLevelObj - usage-level object.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||