Package io.aeron.config
Enum Class DefaultType
- All Implemented Interfaces:
Serializable,Comparable<DefaultType>,Constable
Indicates the 'type' of the default field/value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultTypefromCanonicalName(String canonicalName) booleanstatic booleanisUndefined(DefaultType defaultType) static DefaultTypeReturns the enum constant of this class with the specified name.static DefaultType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Type is undefined. -
BOOLEAN
Boolean type. -
INT
Int32 type. -
LONG
Int64 type. -
DOUBLE
Floating point type. -
STRING
String type.
-
-
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
-
fromCanonicalName
- Parameters:
canonicalName- the name of the java class.- Returns:
- the associated DefaultType.
-
isUndefined
- Parameters:
defaultType- a DefaultType or null.- Returns:
- true if the type is null or if it's UNDEFINED, otherwise false.
-
isNumeric
public boolean isNumeric()- Returns:
- indicates whether the value is numeric (int or long).
-
getSimpleName
- Returns:
- a simple name, for display purposes.
-