public enum PropertyTypeConverter extends Enum<PropertyTypeConverter> implements TypeConverter
TypeConverter
implementations to
convert strings to all common basic Java types.Enum Constant and Description |
---|
BOOLEAN
TypeConverter to convert an input string to an output boolean |
DOUBLE
TypeConverter to convert an input string to an output double |
FLOAT
TypeConverter to convert an input string to an output float |
INTEGER
TypeConverter to convert an input string to an output int |
LONG
TypeConverter to convert an input string to an output long |
SHORT
TypeConverter to convert an input string to an output short |
STRING
TypeConverter that bypasses a string |
Modifier and Type | Method and 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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
convert
public static final PropertyTypeConverter STRING
TypeConverter
that bypasses a stringpublic static final PropertyTypeConverter SHORT
TypeConverter
to convert an input string to an output shortpublic static final PropertyTypeConverter INTEGER
TypeConverter
to convert an input string to an output intpublic static final PropertyTypeConverter LONG
TypeConverter
to convert an input string to an output longpublic static final PropertyTypeConverter FLOAT
TypeConverter
to convert an input string to an output floatpublic static final PropertyTypeConverter DOUBLE
TypeConverter
to convert an input string to an output doublepublic static final PropertyTypeConverter BOOLEAN
TypeConverter
to convert an input string to an output booleanpublic static PropertyTypeConverter[] values()
for (PropertyTypeConverter c : PropertyTypeConverter.values()) System.out.println(c);
public static PropertyTypeConverter 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 nullCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.