Class Key

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Key>

    public class Key
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Key>
    A key in a property map or value map. Used for all maps, following the driver's single key notion (MapAccessor.keys()/get(String key)); there is no distinct "property key" type.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Key.Builder
      A fluent builder for Key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Name TYPE_
      Name of the hydra.neo4j.model.Key type.
      java.lang.String value  
      static Name VALUE
      Name of the hydra.neo4j.model.Key.value field.
    • Constructor Summary

      Constructors 
      Constructor Description
      Key​(java.lang.String value)
      Constructs an immutable Key.
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.neo4j.model.Key type.
      • VALUE

        public static final Name VALUE
        Name of the hydra.neo4j.model.Key.value field.
      • value

        public final java.lang.String value
    • Constructor Detail

      • Key

        public Key​(java.lang.String value)
        Constructs an immutable Key.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Key other)
        Specified by:
        compareTo in interface java.lang.Comparable<Key>
      • builder

        public static Key.Builder builder()
        Creates a new fluent builder for Key.