java.lang.Object | ||
↳ | org.jfree.data.time.RegularTimePeriod | |
↳ | org.jfree.data.time.Minute |
Represents a minute. This class is immutable, which is a requirement for
all RegularTimePeriod
subclasses.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FIRST_MINUTE_IN_HOUR | Useful constant for the first minute in a day. | |||||||||
int | LAST_MINUTE_IN_HOUR | Useful constant for the last minute in a day. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Minute, based on the system date/time.
| |||||||||||
Constructs a new Minute.
| |||||||||||
Constructs a new instance, based on the supplied date/time and
the default time zone.
| |||||||||||
This constructor is deprecated.
As of 1.0.13, use the constructor that specifies the locale
also.
| |||||||||||
Constructs a new Minute, based on the supplied date/time and timezone.
| |||||||||||
Creates a new minute.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an integer indicating the order of this Minute object relative
to the specified object:
negative == before, zero == same, positive == after.
| |||||||||||
Tests the equality of this object against an arbitrary Object.
| |||||||||||
Returns the day.
| |||||||||||
Returns the first millisecond of the minute.
| |||||||||||
Returns the first millisecond of the minute.
| |||||||||||
Returns the hour.
| |||||||||||
Returns the hour.
| |||||||||||
Returns the last millisecond of the minute.
| |||||||||||
Returns the last millisecond of the minute.
| |||||||||||
Returns the minute.
| |||||||||||
Returns a serial index number for the minute.
| |||||||||||
Returns a hash code for this object instance.
| |||||||||||
Returns the minute following this one.
| |||||||||||
Creates a Minute instance by parsing a string.
| |||||||||||
Recalculates the start date/time and end date/time for this time period
relative to the supplied calendar (which incorporates a time zone).
| |||||||||||
Returns the minute preceding this one.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Useful constant for the first minute in a day.
Useful constant for the last minute in a day.
Constructs a new Minute, based on the system date/time.
Constructs a new Minute.
minute | the minute (0 to 59). |
---|---|
hour | the hour (null not permitted).
|
Constructs a new instance, based on the supplied date/time and the default time zone.
time | the time (null not permitted). |
---|
This constructor is deprecated.
As of 1.0.13, use the constructor that specifies the locale
also.
Constructs a new Minute, based on the supplied date/time and timezone.
time | the time (null not permitted). |
---|---|
zone | the time zone (null not permitted). |
Constructs a new Minute, based on the supplied date/time and timezone.
time | the time (null not permitted). |
---|---|
zone | the time zone (null not permitted). |
locale | the locale (null not permitted). |
Creates a new minute.
minute | the minute (0-59). |
---|---|
hour | the hour (0-23). |
day | the day (1-31). |
month | the month (1-12). |
year | the year (1900-9999). |
Returns an integer indicating the order of this Minute object relative to the specified object: negative == before, zero == same, positive == after.
o1 | object to compare. |
---|
Tests the equality of this object against an arbitrary Object.
This method will return true ONLY if the object is a Minute object representing the same minute as this instance.
obj | the object to compare (null permitted). |
---|
true
if the minute and hour value of this and the
object are the same.
Returns the first millisecond of the minute.
calendar | the calendar which defines the timezone
(null not permitted). |
---|
NullPointerException | if calendar is
null .
|
---|
Returns the first millisecond of the minute. 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
peg(Calendar)
method.
Returns the hour.
Returns the last millisecond of the minute.
calendar | the calendar / timezone (null not
permitted). |
---|
NullPointerException | if calendar is
null .
|
---|
Returns the last millisecond of the minute. 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
peg(Calendar)
method.
Returns the minute.
Returns a serial index number for the minute.
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
Returns the minute following this one.
Creates a Minute instance by parsing a string. The string is assumed to be in the format "YYYY-MM-DD HH:MM", perhaps with leading or trailing whitespace.
s | the minute string to parse. |
---|
null
, if the string is not parseable, the minute
otherwise.
Recalculates the start date/time and end date/time for this time period relative to the supplied calendar (which incorporates a time zone).
calendar | the calendar (null not permitted). |
---|
Returns the minute preceding this one.