| java.lang.Object org.jfree.data.time.RegularTimePeriod org.jfree.data.time.Millisecond
Constructor Summary | |
public | Millisecond() Constructs a millisecond based on the current system time. | public | Millisecond(int millisecond, Second second) Constructs a millisecond. | public | Millisecond(int millisecond, int second, int minute, int hour, int day, int month, int year) Creates a new millisecond. | public | Millisecond(Date time) Constructs a millisecond. | public | Millisecond(Date time, TimeZone zone) Creates a millisecond. |
Method Summary | |
public int | compareTo(Object obj) Returns an integer indicating the order of this Millisecond object
relative to the specified object:
negative == before, zero == same, positive == after. | public boolean | equals(Object obj) Tests the equality of this object against an arbitrary Object. | public long | getFirstMillisecond() Returns the first millisecond of the second. | public long | getFirstMillisecond(Calendar calendar) Returns the first millisecond of the time period.
Parameters: calendar - the calendar (null not permitted). | public long | getLastMillisecond() Returns the last millisecond of the second. | public long | getLastMillisecond(Calendar calendar) Returns the last millisecond of the time period.
Parameters: calendar - the calendar (null not permitted). | public long | getMillisecond() Returns the millisecond. | public Second | getSecond() Returns the second. | public long | getSerialIndex() Returns a serial index number for the millisecond. | 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) Recalculates the start date/time and end date/time for this time period
relative to the supplied calendar (which incorporates a time zone). | public RegularTimePeriod | previous() Returns the millisecond preceding this one. |
FIRST_MILLISECOND_IN_SECOND | final public static int FIRST_MILLISECOND_IN_SECOND(Code) | | A constant for the first millisecond in a second.
|
LAST_MILLISECOND_IN_SECOND | final public static int LAST_MILLISECOND_IN_SECOND(Code) | | A constant for the last millisecond in a second.
|
serialVersionUID | final static long serialVersionUID(Code) | | For serialization.
|
Millisecond | public Millisecond()(Code) | | Constructs a millisecond based on the current system time.
|
Millisecond | public Millisecond(int millisecond, Second second)(Code) | | Constructs a millisecond.
Parameters: millisecond - the millisecond (0-999). Parameters: second - the second. |
Millisecond | public Millisecond(int millisecond, int second, int minute, int hour, int day, int month, int year)(Code) | | Creates a new millisecond.
Parameters: millisecond - the millisecond (0-999). Parameters: second - the second (0-59). Parameters: minute - the minute (0-59). Parameters: hour - the hour (0-23). Parameters: day - the day (1-31). Parameters: month - the month (1-12). Parameters: year - the year (1900-9999). |
Millisecond | public Millisecond(Date time)(Code) | | Constructs a millisecond.
Parameters: time - the time. |
Millisecond | public Millisecond(Date time, TimeZone zone)(Code) | | Creates a millisecond.
Parameters: time - the instant in time. Parameters: zone - the time zone. |
compareTo | public int compareTo(Object obj)(Code) | | Returns an integer indicating the order of this Millisecond object
relative to the specified object:
negative == before, zero == same, positive == after.
Parameters: obj - the object to compare negative == before, zero == same, positive == after. |
equals | public boolean equals(Object obj)(Code) | | Tests the equality of this object against an arbitrary Object.
This method will return true ONLY if the object is a Millisecond object
representing the same millisecond as this instance.
Parameters: obj - the object to compare true if milliseconds and seconds of this and objectare the same. |
getFirstMillisecond | public long getFirstMillisecond()(Code) | | Returns the first millisecond of the second. This will be determined
relative to the time zone specified in the constructor, or in the
calendar instance passed in the most recent call to the
Millisecond.peg(Calendar) method.
The first millisecond of the second. See Also: Millisecond.getLastMillisecond() |
getFirstMillisecond | public long getFirstMillisecond(Calendar calendar)(Code) | | Returns the first millisecond of the time period.
Parameters: calendar - the calendar (null not permitted). The first millisecond of the time period. throws: NullPointerException - if calendar is null . |
getLastMillisecond | public long getLastMillisecond()(Code) | | Returns the last millisecond of the second. This will be
determined relative to the time zone specified in the constructor, or
in the calendar instance passed in the most recent call to the
Millisecond.peg(Calendar) method.
The last millisecond of the second. See Also: Millisecond.getFirstMillisecond() |
getLastMillisecond | public long getLastMillisecond(Calendar calendar)(Code) | | Returns the last millisecond of the time period.
Parameters: calendar - the calendar (null not permitted). The last millisecond of the time period. throws: NullPointerException - if calendar is null . |
getMillisecond | public long getMillisecond()(Code) | | Returns the millisecond.
The millisecond. |
getSecond | public Second getSecond()(Code) | | Returns the second.
The second. |
getSerialIndex | public long getSerialIndex()(Code) | | Returns a serial index number for the millisecond.
The serial index number. |
hashCode | public int hashCode()(Code) | | Returns a hash code for this object instance. The approach described by
Joshua Bloch in "Effective Java" has been used here:
http://developer.java.sun.com/developer/Books/effectivejava
/Chapter3.pdf
A hashcode. |
next | public RegularTimePeriod next()(Code) | | Returns the millisecond following this one.
The millisecond following this one. |
peg | public void peg(Calendar calendar)(Code) | | Recalculates the start date/time and end date/time for this time period
relative to the supplied calendar (which incorporates a time zone).
Parameters: calendar - the calendar (null not permitted). since: 1.0.3 |
previous | public RegularTimePeriod previous()(Code) | | Returns the millisecond preceding this one.
The millisecond preceding this one. |
|
|