Package net.sf.saxon.functions
Enum Round.RoundingRule
- java.lang.Object
-
- java.lang.Enum<Round.RoundingRule>
-
- net.sf.saxon.functions.Round.RoundingRule
-
- All Implemented Interfaces:
Serializable
,Comparable<Round.RoundingRule>
- Enclosing class:
- Round
public static enum Round.RoundingRule extends Enum<Round.RoundingRule>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWAY_FROM_ZERO
CEILING
FLOOR
HALF_AWAY_FROM_ZERO
HALF_TO_CEILING
HALF_TO_EVEN
HALF_TO_FLOOR
HALF_TOWARD_ZERO
TOWARD_ZERO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Round.RoundingRule
valueOf(String name)
Returns the enum constant of this type with the specified name.static Round.RoundingRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOOR
public static final Round.RoundingRule FLOOR
-
CEILING
public static final Round.RoundingRule CEILING
-
TOWARD_ZERO
public static final Round.RoundingRule TOWARD_ZERO
-
AWAY_FROM_ZERO
public static final Round.RoundingRule AWAY_FROM_ZERO
-
HALF_TO_FLOOR
public static final Round.RoundingRule HALF_TO_FLOOR
-
HALF_TO_CEILING
public static final Round.RoundingRule HALF_TO_CEILING
-
HALF_TOWARD_ZERO
public static final Round.RoundingRule HALF_TOWARD_ZERO
-
HALF_AWAY_FROM_ZERO
public static final Round.RoundingRule HALF_AWAY_FROM_ZERO
-
HALF_TO_EVEN
public static final Round.RoundingRule HALF_TO_EVEN
-
-
Method Detail
-
values
public static Round.RoundingRule[] 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 (Round.RoundingRule c : Round.RoundingRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Round.RoundingRule 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
-
-