public final class QueueTimeField
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private boolean |
myIsRelative |
private int |
myTime |
private static long |
serialVersionUID |
Constructor and Description |
---|
QueueTimeField(int aTime,
boolean isRelative)
This will construct this object with the given time (in seconds).
|
Modifier and Type | Method and Description |
---|---|
int |
getTime()
Returns the time associated with this object in seconds
|
boolean |
isRelative()
Returns whether or not the time associated with this object is relative
to the current time or is absolute
|
java.lang.String |
toString()
Returs a string representation of this object
|
private static final long serialVersionUID
private int myTime
private boolean myIsRelative
public QueueTimeField(int aTime, boolean isRelative)
aTime
- The time in seconds an event should occur (dequeue or exiration)isRelative
- If true, the time given is relative to the current time,
otherwise the value is to be interpreted as an absolute timepublic int getTime()
public boolean isRelative()
public java.lang.String toString()
toString
in class java.lang.Object