Package com.guflimc.brick.i18n.api.time
Enum Class BrickChronoField
- All Implemented Interfaces:
Serializable
,Comparable<BrickChronoField>
,Constable
,TemporalField
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents the total amount of days in aTemporalAmount
.Represents the remaining amount of days that do not make up for a whole month in aTemporalAmount
.Represents the total amount of hours in aTemporalAmount
.Represents the remaining amount of hours that do not make up for a whole day in aTemporalAmount
.Represents the total amount of milliseconds in aTemporalAmount
.Represents the remaining amount of milliseconds that do not make up for a whole second in aTemporalAmount
.Represents the total amount of minutes in aTemporalAmount
.Represents the remaining amount of minutes that do not make up for a whole hour in aTemporalAmount
.Represents the total amount of months in aTemporalAmount
.Represents the remaining amount of months that do not make up for a whole year in aTemporalAmount
.Represents the total amount of seconds in aTemporalAmount
.Represents the remaining amount of seconds that do not make up for a whole minute in aTemporalAmount
.Represents the total amount of years in aTemporalAmount
. -
Method Summary
Modifier and TypeMethodDescription<R extends Temporal>
RadjustInto
(R temporal, long newValue) long
getFrom
(TemporalAccessor temporal) boolean
boolean
isSupportedBy
(TemporalAccessor temporal) boolean
range()
rangeRefinedBy
(TemporalAccessor temporal) static BrickChronoField
Returns the enum constant of this class with the specified name.static BrickChronoField[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.time.temporal.TemporalField
getDisplayName, resolve, toString
-
Enum Constant Details
-
YEAR
Represents the total amount of years in aTemporalAmount
. -
MONTH
Represents the total amount of months in aTemporalAmount
. -
MONTH_REMAINDER
Represents the remaining amount of months that do not make up for a whole year in aTemporalAmount
. -
DAY
Represents the total amount of days in aTemporalAmount
. -
DAY_REMAINDER
Represents the remaining amount of days that do not make up for a whole month in aTemporalAmount
. -
HOUR
Represents the total amount of hours in aTemporalAmount
. -
HOUR_REMAINDER
Represents the remaining amount of hours that do not make up for a whole day in aTemporalAmount
. -
MINUTE
Represents the total amount of minutes in aTemporalAmount
. -
MINUTE_REMAINDER
Represents the remaining amount of minutes that do not make up for a whole hour in aTemporalAmount
. -
SECOND
Represents the total amount of seconds in aTemporalAmount
. -
SECOND_REMAINDER
Represents the remaining amount of seconds that do not make up for a whole minute in aTemporalAmount
. -
MILLISECOND
Represents the total amount of milliseconds in aTemporalAmount
. -
MILLISECOND_REMAINDER
Represents the remaining amount of milliseconds that do not make up for a whole second in aTemporalAmount
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBaseUnit
- Specified by:
getBaseUnit
in interfaceTemporalField
-
getRangeUnit
- Specified by:
getRangeUnit
in interfaceTemporalField
-
range
- Specified by:
range
in interfaceTemporalField
-
isDateBased
public boolean isDateBased()- Specified by:
isDateBased
in interfaceTemporalField
-
isTimeBased
public boolean isTimeBased()- Specified by:
isTimeBased
in interfaceTemporalField
-
isSupportedBy
- Specified by:
isSupportedBy
in interfaceTemporalField
-
rangeRefinedBy
- Specified by:
rangeRefinedBy
in interfaceTemporalField
-
getFrom
- Specified by:
getFrom
in interfaceTemporalField
-
adjustInto
- Specified by:
adjustInto
in interfaceTemporalField
-