Method Summary |
|
public int | compareTo(Object o1) Returns an integer indicating the order of this Millisecond object
relative to the specified
object: negative == before, zero == same, positive == after.
Parameters: o1 - the object to compare. |
public boolean | equals(Object object) Tests the equality of this object against an arbitrary Object. |
public long | getFirstMillisecond() Returns the first millisecond of the time period. |
public long | getFirstMillisecond(Calendar calendar) Returns the first millisecond of the time period.
Parameters: calendar - the calendar. |
public long | getLastMillisecond() Returns the last millisecond of the time period. |
public long | getLastMillisecond(Calendar calendar) Returns the last millisecond of the time period.
Parameters: calendar - the calendar. |
public long | getMiddleMillisecond() Returns the millisecond closest to the middle of the time period. |
public long | getMiddleMillisecond(Calendar calendar) Returns the millisecond closest to the middle of the time period.
Parameters: calendar - the calendar. |
public long | getSerialIndex() Returns a serial index number for the millisecond. |
public Date | getTime() Returns the date/time. |
public int | hashCode() Returns a hash code for this object instance. |
public RegularTimePeriod | next() Returns the millisecond following this one. |
public void | peg(Calendar calendar) This method is overridden to do nothing. |
public RegularTimePeriod | previous() Returns the millisecond preceding this one. |