public static enum Property.Type extends Enum<Property.Type>
Property
Enum Constant and Description |
---|
BOOLEAN |
DECIMAL |
INT |
MULTILINE |
PASSWORD |
TEXT |
Modifier and Type | Method and Description |
---|---|
static Property.Type |
forObject(Object value)
Returns the best matching type for the given object
|
static Property.Type |
forString(String value)
Finds the best matching type for the given input string
|
static boolean |
isValidValue(Property.Type type,
String value)
Checks if the given input value is a valid string representation according to the given type.
|
static Property.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Property.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Property.Type INT
public static final Property.Type DECIMAL
public static final Property.Type BOOLEAN
public static final Property.Type TEXT
public static final Property.Type PASSWORD
public static final Property.Type MULTILINE
public static Property.Type[] values()
for (Property.Type c : Property.Type.values()) System.out.println(c);
public static Property.Type 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 static Property.Type forObject(Object value)
value
- the objectpublic static boolean isValidValue(Property.Type type, String value)
type
- the typevalue
- the input valuetrue
if the value is a valid string representation, false otherwise
public static Property.Type forString(String value)
value
- the input stringCopyright © 2011–2021 aiticon GmbH. All rights reserved.