Package com.hazelcast.config.properties
Enum PropertyTypeConverter
- All Implemented Interfaces:
TypeConverter
,Serializable
,Comparable<PropertyTypeConverter>
,java.lang.constant.Constable
public enum PropertyTypeConverter extends Enum<PropertyTypeConverter> implements TypeConverter
This enum class contains basic
TypeConverter
implementations to
convert strings to all common basic Java types.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
TypeConverter
to convert an input string to an output booleanDOUBLE
TypeConverter
to convert an input string to an output doubleFLOAT
TypeConverter
to convert an input string to an output floatINTEGER
TypeConverter
to convert an input string to an output intLONG
TypeConverter
to convert an input string to an output longSHORT
TypeConverter
to convert an input string to an output shortSTRING
TypeConverter
that bypasses a string -
Method Summary
Modifier and Type Method Description static PropertyTypeConverter
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertyTypeConverter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRING
TypeConverter
that bypasses a string -
SHORT
TypeConverter
to convert an input string to an output short -
INTEGER
TypeConverter
to convert an input string to an output int -
LONG
TypeConverter
to convert an input string to an output long -
FLOAT
TypeConverter
to convert an input string to an output float -
DOUBLE
TypeConverter
to convert an input string to an output double -
BOOLEAN
TypeConverter
to convert an input string to an output boolean
-
-
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
-