Package com.exedio.cope
Enum DateField.RoundingMode
- All Implemented Interfaces:
Serializable
,Comparable<DateField.RoundingMode>
,java.lang.constant.Constable
- Enclosing class:
- DateField
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRounding mode to round towards future.Rounding mode to round towards past.Rounding mode that does not round. -
Method Summary
Modifier and TypeMethodDescriptionstatic DateField.RoundingMode
Returns the enum constant of this type with the specified name.static DateField.RoundingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FUTURE
Rounding mode to round towards future. This rounding mode is analogous toRoundingMode.CEILING
. -
PAST
Rounding mode to round towards past. This rounding mode is analogous toRoundingMode.FLOOR
. -
UNNECESSARY
Rounding mode that does not round. Instead it asserts that the value is already rounded. Otherwise aDatePrecisionViolationException
is thrown. This rounding mode is analogous toRoundingMode.UNNECESSARY
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-