Package adalid.core.enums
Enum DivisorRule
- java.lang.Object
-
- java.lang.Enum<DivisorRule>
-
- adalid.core.enums.DivisorRule
-
- All Implemented Interfaces:
Serializable,Comparable<DivisorRule>
public enum DivisorRule extends Enum<DivisorRule>
- Author:
- Jorge Campins
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CEILINGCHECKFLOORROUNDUNSPECIFIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DivisorRulevalueOf(String name)Returns the enum constant of this type with the specified name.static DivisorRule[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final DivisorRule UNSPECIFIED
-
CHECK
public static final DivisorRule CHECK
-
CEILING
public static final DivisorRule CEILING
-
FLOOR
public static final DivisorRule FLOOR
-
ROUND
public static final DivisorRule ROUND
-
-
Method Detail
-
values
public static DivisorRule[] 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 (DivisorRule c : DivisorRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DivisorRule 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
-
-