public enum PropertyType extends Enum<PropertyType>
| Enum Constant and Description |
|---|
BOOLEAN
Represents a boolean property.
|
BOOLEAN_ARRAY
Represents an array of booleans.
|
BYTE
Represents a byte property.
|
BYTE_ARRAY
Represents an array of bytes.
|
CHAR
Represents a character property.
|
CHAR_ARRAY
Represents an array of characters.
|
DOUBLE
Represents a double property.
|
DOUBLE_ARRAY
Represents an array of doubles.
|
FLOAT
Represents a float property.
|
FLOAT_ARRAY
Represents an array of floats.
|
INT
Represents an integer property.
|
INT_ARRAY
Represents an array of integers.
|
LONG
Represents a long property.
|
LONG_ARRAY
Represents an array of longs.
|
SHORT
Represents a short property.
|
SHORT_ARRAY
Represents an array of shorts.
|
STRING
Represents a String property.
|
STRING_ARRAY
Represents an array of Strings.
|
UNDEFINED
Represents an undefined type.
|
| Modifier and Type | Field and Description |
|---|---|
String |
typeName
Specifies the name of the type.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Object propertyValue)
Format a given value to a String by applying a string formatter.
|
static <T> T |
format(ValueFormatter<T> formatter,
Object propertyValue)
Apply a formatter to a value and return the result.
|
static PropertyType |
getTypeOf(Object propertyValue)
Get the
PropertyType representing the type of a value. |
static PropertyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyType STRING
public static final PropertyType INT
public static final PropertyType LONG
public static final PropertyType BOOLEAN
public static final PropertyType SHORT
public static final PropertyType CHAR
public static final PropertyType BYTE
public static final PropertyType FLOAT
public static final PropertyType DOUBLE
public static final PropertyType STRING_ARRAY
public static final PropertyType INT_ARRAY
public static final PropertyType LONG_ARRAY
public static final PropertyType BOOLEAN_ARRAY
public static final PropertyType SHORT_ARRAY
public static final PropertyType CHAR_ARRAY
public static final PropertyType BYTE_ARRAY
public static final PropertyType FLOAT_ARRAY
public static final PropertyType DOUBLE_ARRAY
public static final PropertyType UNDEFINED
public final String typeName
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType 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 PropertyType getTypeOf(Object propertyValue)
PropertyType representing the type of a value.propertyValue - the value to get the type of.public static <T> T format(ValueFormatter<T> formatter, Object propertyValue)
T - the type of the result.formatter - the formatter to apply to the value.propertyValue - the value to apply the formatter to.public static String format(Object propertyValue)
propertyValue - the value to turn into a string.format(ValueFormatter, Object)Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.