Package com.exedio.cope
Enum DateField.RoundingMode
- java.lang.Object
-
- java.lang.Enum<DateField.RoundingMode>
-
- com.exedio.cope.DateField.RoundingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DateField.RoundingMode>
- Enclosing class:
- DateField
public static enum DateField.RoundingMode extends Enum<DateField.RoundingMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FUTURE
Rounding mode to round towards future.PAST
Rounding mode to round towards past.UNNECESSARY
Rounding mode that does not round.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateField.RoundingMode
valueOf(String name)
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 Detail
-
FUTURE
public static final DateField.RoundingMode FUTURE
Rounding mode to round towards future. This rounding mode is analogous toRoundingMode.CEILING
.
-
PAST
public static final DateField.RoundingMode PAST
Rounding mode to round towards past. This rounding mode is analogous toRoundingMode.FLOOR
.
-
UNNECESSARY
public static final DateField.RoundingMode 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 Detail
-
values
public static DateField.RoundingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateField.RoundingMode c : DateField.RoundingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateField.RoundingMode valueOf(String name)
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
-
-