Module org.neo4j.driver
Package org.neo4j.driver.internal.types
Class InternalMapAccessorWithDefaultValue
java.lang.Object
org.neo4j.driver.internal.types.InternalMapAccessorWithDefaultValue
- All Implemented Interfaces:
MapAccessor,MapAccessorWithDefaultValue
- Direct Known Subclasses:
ValueAdapter
public abstract class InternalMapAccessorWithDefaultValue
extends Object
implements MapAccessorWithDefaultValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ValueRetrieve the value of the property with the given keybooleanRetrieve the java boolean with the given key.doubleRetrieve the java double number with the given key.floatRetrieve the java float number with the given key.intRetrieve the java integer with the given key.longRetrieve the java long number with the given key.Retrieve the number with the given key.Retrieve the object with the given key.Retrieve the java string with the given key.Retrieve the list of objects with the given key.<T> List<T>Retrieve the list with the given key.Retrieve the map with the given key.Retrieve the map with the given key.Retrieve the entity with the given key.Retrieve the node with the given key.Retrieve the path with the given key.get(String key, Relationship defaultValue) Retrieve the value with the given key.Retrieve the value with the given key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.driver.types.MapAccessor
asMap, asMap, containsKey, keys, size, values, values
-
Constructor Details
-
InternalMapAccessorWithDefaultValue
public InternalMapAccessorWithDefaultValue()
-
-
Method Details
-
get
Description copied from interface:MapAccessorRetrieve the value of the property with the given key- Specified by:
getin interfaceMapAccessor- Parameters:
key- the key of the property- Returns:
- the property's value or a
NullValueif no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the value with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the valuedefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the value found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the object with the given key. If no object found by the key, then the default object provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the objectdefaultValue- the default object that would be returned if no object found by the key in the map- Returns:
- the object found by the key or the default object if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the number with the given key. If no number found by the key, then the default number provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the numberdefaultValue- the default number that would be returned if no number found by the key in the map- Returns:
- the number found by the key or the default number if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the entity with the given key. If no entity found by the key, then the default entity provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the entitydefaultValue- the default entity that would be returned if no entity found by the key in the map- Returns:
- the entity found by the key or the default entity if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the node with the given key. If no node found by the key, then the default node provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the nodedefaultValue- the default node that would be returned if no node found by the key in the map- Returns:
- the node found by the key or the default node if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the path with the given key. If no path found by the key, then the default path provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default path that would be returned if no path found by the key in the map- Returns:
- the path found by the key or the default path if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the value with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the value found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the list of objects with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the valuedefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the list of objects found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the list with the given key. If no value found by the key, then the default list provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Type Parameters:
T- the type of the elements in the returned list- Parameters:
key- the key of the valuedefaultValue- the default value that would be returned if no value found by the key in the mapmapFunc- the map function that defines how to map each element of the list fromValueto T- Returns:
- the converted list found by the key or the default list if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the map with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the map found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the map with the given key. If no value found by the key, then the default map provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Type Parameters:
T- the type of the values in the returned map- Parameters:
key- the key of the valuedefaultValue- the default value that would be returned if no value found by the key in the mapmapFunc- the map function that defines how to map each value in map fromValueto T- Returns:
- the converted map found by the key or the default map if no such key exists.
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java integer with the given key. If no integer found by the key, then the default integer provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default integer that would be returned if no integer found by the key in the map- Returns:
- the integer found by the key or the default integer if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java long number with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the java long number found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java boolean with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the java boolean found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java string with the given key. If no string found by the key, then the default string provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default string that would be returned if no string found by the key in the map- Returns:
- the string found by the key or the default string if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java float number with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the java float number found by the key or the default value if no such key exists
-
get
Description copied from interface:MapAccessorWithDefaultValueRetrieve the java double number with the given key. If no value found by the key, then the default value provided would be returned.- Specified by:
getin interfaceMapAccessorWithDefaultValue- Parameters:
key- the key of the propertydefaultValue- the default value that would be returned if no value found by the key in the map- Returns:
- the java double number found by the key or the default value if no such key exists
-