|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.TimePeriod
public class TimePeriod
An instance of this class represents a time period.
Constructor Summary | |
---|---|
TimePeriod(long startTime,
long stopTime)
This method constructs a TimePeriod instance corresponding to the
passed startTime and stopTime . |
Method Summary | |
---|---|
boolean |
equals(Object object)
Tests this TimePeriod for equality with the passed Object. |
long |
getStartTime()
Returns the number of milliseconds after January 1, 1970, 00:00:00 GMT when the time period starts, a long |
long |
getStopTime()
Returns the number of milliseconds after January 1, 1970, 00:00:00 GMT when the time period stops, a long |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePeriod(long startTime, long stopTime)
TimePeriod
instance corresponding to the
passed startTime
and stopTime
.
startTime
- The number of milliseconds after January 1, 1970, 00:00:00
GMT when the time period starts, a longstopTime
- The number of milliseconds after January 1, 1970, 00:00:00
GMT when the time period stops, a longMethod Detail |
---|
public boolean equals(Object object)
TimePeriod
for equality with the passed Object.
If the given object is not a TimePeriod
, then this method
immediately returns false
.
If the passed object is a TimePeriod
, then it is deemed equal if
it has a numerically equivalent start time and a numerically equivalent
stop time to the passed TimePeriod
instance.
equals
in class Object
object
- The Object
to test for equality
public int hashCode()
hashCode
in class Object
public long getStartTime()
public long getStopTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |