public class ValueContext extends Object
Constructor and Description |
---|
ValueContext(Object value) |
Modifier and Type | Method and Description |
---|---|
Object |
getCorrectValue()
Returns the string representation of the value given in the constructor,
or the unmodified value if
indexNumeric() has been called. |
Object |
getValue() |
ValueContext |
indexNumeric()
Returns a ValueContext to be used with
Index.add(org.neo4j.graphdb.PropertyContainer, String, Object) |
static ValueContext |
numeric(Number value)
Convience method to add a numeric value to an index.
|
String |
toString() |
public ValueContext(Object value)
public Object getValue()
public ValueContext indexNumeric()
Index.add(org.neo4j.graphdb.PropertyContainer, String, Object)
public Object getCorrectValue()
indexNumeric()
has been called.public static ValueContext numeric(Number value)
value
- The value to addIndex.add(org.neo4j.graphdb.PropertyContainer, String, Object)
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.