T - The result type that this formatter yields.public interface ValueFormatter<T>
PropertyType can turn a value into a
specific result type.| Modifier and Type | Field and Description |
|---|---|
static ValueFormatter<String> |
DEFAULT_STRING_FORMATTER
A default implementation that formats a String.
|
| Modifier and Type | Method and Description |
|---|---|
T |
formatBoxedPrimitive(PropertyType type,
Object value)
Format a boxed primitive.
|
T |
formatBoxedPrimitiveArray(PropertyType elementType,
Object[] array)
Format an array of boxed primitives.
|
T |
formatPrimitiveArray(PropertyType elementType,
Object array)
Format an array of primitives.
|
T |
formatString(String value)
Format a string.
|
T |
formatStringArray(String[] array)
Format a string array.
|
T |
formatUnknownObject(Object value)
Format an object of unsupported type.
|
static final ValueFormatter<String> DEFAULT_STRING_FORMATTER
T formatString(String value)
value - the string to format.T formatStringArray(String[] array)
array - the string array to format.T formatBoxedPrimitive(PropertyType type, Object value)
type - an object representing the type of the primitive.value - the boxed primitive object to format.T formatPrimitiveArray(PropertyType elementType, Object array)
elementType - an object representing the type of the elements of the array.array - the array to format.T formatBoxedPrimitiveArray(PropertyType elementType, Object[] array)
elementType - an object representing the type of the elements of the array.array - the array to format.Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.