public static enum NFMT.Attribute extends Enum<NFMT.Attribute> implements INumberEnum<Byte>
Enum Constant and Description |
---|
PARENS
Negative numbers will be displayed in parentheses, rather than being preceded by a minus sign.
|
PERCENT
The number entered will be interpreted as a percentage, and will be converted to its
decimal equivalent by moving the decimal point two places to the left.
|
PUNCTUATED
The number will be punctuated by the appropriate separator character.
|
VARYING
Numbers can have a varying number of decimal places (applies to Decimal & Percent only).
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Byte |
getValue() |
static NFMT.Attribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NFMT.Attribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NFMT.Attribute PUNCTUATED
public static final NFMT.Attribute PARENS
public static final NFMT.Attribute PERCENT
public static final NFMT.Attribute VARYING
public static NFMT.Attribute[] values()
for (NFMT.Attribute c : NFMT.Attribute.values()) System.out.println(c);
public static NFMT.Attribute valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getLongValue()
getLongValue
in interface INumberEnum<Byte>
long
public Byte getValue()
getValue
in interface INumberEnum<Byte>
Copyright © 2019–2021 HCL. All rights reserved.