Package hydra.neo4j.model
Class Key
- java.lang.Object
-
- hydra.neo4j.model.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 classKey.BuilderA fluent builder forKey.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Key.Builderbuilder()Creates a new fluent builder forKey.intcompareTo(Key other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Key
public Key(java.lang.String value)
Constructs an immutableKey.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(Key other)
- Specified by:
compareToin interfacejava.lang.Comparable<Key>
-
builder
public static Key.Builder builder()
Creates a new fluent builder forKey.
-
-