public class StationLevelsEntry
extends java.lang.Object
implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
short |
statusLevelIndex |
int |
timeValue |
short |
usageLevelIndex |
| Constructor and Description |
|---|
StationLevelsEntry(int timeVal,
StatusLevelTag sLevelObj,
UsageLevelTag uLevelObj)
Creates a station-levels entry object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public final int timeValue
public final short statusLevelIndex
public final short usageLevelIndex
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.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