Package org.neo4j.ogm.response.model
Class PropertyModel<K,V>
java.lang.Object
org.neo4j.ogm.response.model.PropertyModel<K,V>
- All Implemented Interfaces:
Property<K,V>
- Author:
- Michal Bachman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()getValue()inthashCode()toString()static <K,V> PropertyModel<K, V> with(K key, V value) Constructs a newPropertyModelinferring the generic type arguments of the key and the value.
-
Constructor Details
-
PropertyModel
-
-
Method Details
-
with
Constructs a newPropertyModelinferring the generic type arguments of the key and the value.- Parameters:
key- The property key or namevalue- The property value- Returns:
- A new
PropertyModelbased on the given arguments
-
getKey
-
getValue
-
toString
-
asParameter
- Specified by:
asParameterin interfaceProperty<K,V>
-
equals
-
hashCode
public int hashCode()
-