Package hydra.pg.graphson.syntax
Class AdjacentEdge
- java.lang.Object
-
- hydra.pg.graphson.syntax.AdjacentEdge
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AdjacentEdge>
public class AdjacentEdge extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AdjacentEdge>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Valueidstatic NameIDName of thehydra.pg.graphson.syntax.AdjacentEdge.idfield.java.util.Map<PropertyKey,Value>propertiesstatic NamePROPERTIESName of thehydra.pg.graphson.syntax.AdjacentEdge.propertiesfield.static NameTYPE_Name of thehydra.pg.graphson.syntax.AdjacentEdgetype.static NameVERTEX_IDName of thehydra.pg.graphson.syntax.AdjacentEdge.vertexIdfield.ValuevertexId
-
Constructor Summary
Constructors Constructor Description AdjacentEdge(Value id, Value vertexId, java.util.Map<PropertyKey,Value> properties)Constructs an immutableAdjacentEdge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AdjacentEdge other)booleanequals(java.lang.Object other)inthashCode()AdjacentEdgewithId(Value id)Returns a copy of thisAdjacentEdgewithidreplaced.AdjacentEdgewithProperties(java.util.Map<PropertyKey,Value> properties)Returns a copy of thisAdjacentEdgewithpropertiesreplaced.AdjacentEdgewithVertexId(Value vertexId)Returns a copy of thisAdjacentEdgewithvertexIdreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.pg.graphson.syntax.AdjacentEdgetype.
-
ID
public static final Name ID
Name of thehydra.pg.graphson.syntax.AdjacentEdge.idfield.
-
VERTEX_ID
public static final Name VERTEX_ID
Name of thehydra.pg.graphson.syntax.AdjacentEdge.vertexIdfield.
-
PROPERTIES
public static final Name PROPERTIES
Name of thehydra.pg.graphson.syntax.AdjacentEdge.propertiesfield.
-
id
public final Value id
-
vertexId
public final Value vertexId
-
properties
public final java.util.Map<PropertyKey,Value> properties
-
-
Constructor Detail
-
AdjacentEdge
public AdjacentEdge(Value id, Value vertexId, java.util.Map<PropertyKey,Value> properties)
Constructs an immutableAdjacentEdge.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(AdjacentEdge other)
- Specified by:
compareToin interfacejava.lang.Comparable<AdjacentEdge>
-
withId
public AdjacentEdge withId(Value id)
Returns a copy of thisAdjacentEdgewithidreplaced.
-
withVertexId
public AdjacentEdge withVertexId(Value vertexId)
Returns a copy of thisAdjacentEdgewithvertexIdreplaced.
-
withProperties
public AdjacentEdge withProperties(java.util.Map<PropertyKey,Value> properties)
Returns a copy of thisAdjacentEdgewithpropertiesreplaced.
-
-