| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long[] | approxDurations
Approximate, durations for the units independent of the time at which they are measured |
| public static final TimeUnit | DAY
Represents a day. |
| public static final TimeUnit | HOUR
Represents an hour. |
| public static final TimeUnit | MILLISECOND
Represents a millisecond. |
| public static final TimeUnit | MINUTE
Represents a minute. |
| public static final TimeUnit | MONTH
Represents a month. |
| pack-priv final String | name
The name of this unit, a key, not for localization. |
| pack-priv final byte | ordinal
The ordinal of the unit, in order from largest to smallest. |
| public static final TimeUnit | SECOND
Represents a second. |
| pack-priv static final TimeUnit[] | units
The list of units, in order from largest to smallest. |
| public static final TimeUnit | WEEK
Represents a week. |
| public static final TimeUnit | YEAR
Represents a year. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TimeUnit | |
| public int | |
| public TimeUnit | |
| public String |
| approxDurations | back to summary |
|---|---|
| pack-priv static final long[] approxDurations Approximate, durations for the units independent of the time at which they are measured | |
| DAY | back to summary |
|---|---|
| public static final TimeUnit DAY Represents a day. | |
| HOUR | back to summary |
|---|---|
| public static final TimeUnit HOUR Represents an hour. | |
| MILLISECOND | back to summary |
|---|---|
| public static final TimeUnit MILLISECOND Represents a millisecond. | |
| MINUTE | back to summary |
|---|---|
| public static final TimeUnit MINUTE Represents a minute. | |
| MONTH | back to summary |
|---|---|
| public static final TimeUnit MONTH Represents a month. | |
| name | back to summary |
|---|---|
| pack-priv final String name The name of this unit, a key, not for localization. | |
| ordinal | back to summary |
|---|---|
| pack-priv final byte ordinal The ordinal of the unit, in order from largest to smallest. | |
| SECOND | back to summary |
|---|---|
| public static final TimeUnit SECOND Represents a second. | |
| units | back to summary |
|---|---|
| pack-priv static final TimeUnit[] units The list of units, in order from largest to smallest. | |
| WEEK | back to summary |
|---|---|
| public static final TimeUnit WEEK Represents a week. | |
| YEAR | back to summary |
|---|---|
| public static final TimeUnit YEAR Represents a year. | |
| TimeUnit | back to summary |
|---|---|
| private TimeUnit(String name, int ordinal) Private constructor | |
| larger | back to summary |
|---|---|
| public TimeUnit larger() Returns the next larger time unit, or null if this is the largest. | |
| ordinal | back to summary |
|---|---|
| public int ordinal() Returns the ordinal value of this time unit, largest is 0. | |
| smaller | back to summary |
|---|---|
| public TimeUnit smaller() Returns the next smaller time unit, or null if this is the smallest. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |