Package com.almis.awe.model.type
Enum Class RoundingType
- All Implemented Interfaces:
Serializable
,Comparable<RoundingType>
,Constable
RoundingType Enumerated
List of allowed web numeric types
- Author:
- Pablo GARCIA - 16/APR/2012
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRound to CeilingRound DownRound to FloorRound-Half-Down AsymmetricRound-Half-Down SymmetricRound-Half-EvenRound-Half-Up AsymmetricRound-Half-Up SymmetricRound Up -
Method Summary
Modifier and TypeMethodDescriptionstatic RoundingType
Get rounding type from codegetCode()
Get rounding type codeOverride toString method to return property valuestatic RoundingType
Returns the enum constant of this class with the specified name.static RoundingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HALF_UP_SYMMETRIC
Round-Half-Up Symmetric -
HALF_UP_ASYMMETRIC
Round-Half-Up Asymmetric -
HALF_DOWN_SYMMETRIC
Round-Half-Down Symmetric -
HALF_DOWN_ASYMMETRIC
Round-Half-Down Asymmetric -
HALF_EVEN
Round-Half-Even -
UP
Round Up -
DOWN
Round Down -
CEILING
Round to Ceiling -
FLOOR
Round to Floor
-
-
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
-
fromCode
Get rounding type from code- Parameters:
code
- Code- Returns:
- Rounding type
-
getRoundingMode
Override toString method to return property value- Returns:
- Property value (if defined)
-
getCode
Get rounding type code- Returns:
- code
-