Enum IntegerParseError
- All Implemented Interfaces:
Serializable,Comparable<IntegerParseError>
An error occurring while parsing an integer (e.g. an
int).-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionParsed expression contains no digits at all.Parsed expression contains an invalid character.Parsed expression contains only a sign (i.e.Parsed expression represents a number which is out of resulting type's bounds. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerParseErrorReturns the enum constant of this type with the specified name.static IntegerParseError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EMPTY
Parsed expression contains no digits at all. -
ONLY_SIGN
Parsed expression contains only a sign (i.e.'+'or'-'). -
INVALID_CHARACTER
Parsed expression contains an invalid character. -
OUT_OF_BOUNDS
Parsed expression represents a number which is out of resulting type's bounds.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-