Class PropertyModel<K,V>

java.lang.Object
org.neo4j.ogm.response.model.PropertyModel<K,V>
All Implemented Interfaces:
Property<K,V>

public class PropertyModel<K,V> extends Object implements Property<K,V>
Author:
Michal Bachman
  • Constructor Details

    • PropertyModel

      public PropertyModel(K key, V value)
  • Method Details

    • with

      public static <K, V> PropertyModel<K,V> with(K key, V value)
      Constructs a new PropertyModel inferring the generic type arguments of the key and the value.
      Parameters:
      key - The property key or name
      value - The property value
      Returns:
      A new PropertyModel based on the given arguments
    • getKey

      public K getKey()
      Specified by:
      getKey in interface Property<K,V>
    • getValue

      public V getValue()
      Specified by:
      getValue in interface Property<K,V>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asParameter

      public Object asParameter()
      Specified by:
      asParameter in interface Property<K,V>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object