Class EdgePropertyRef
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.EdgePropertyRef
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgePropertyRef>
public class EdgePropertyRef extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EdgePropertyRef>
Reference to an edge property: edge.property- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathElementelementstatic NameELEMENTName of thecom.gdblab.pathAlgebra.expressions.EdgePropertyRef.elementfield.java.lang.Stringpropertystatic NamePROPERTYName of thecom.gdblab.pathAlgebra.expressions.EdgePropertyRef.propertyfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.EdgePropertyReftype.
-
Constructor Summary
Constructors Constructor Description EdgePropertyRef(PathElement element, java.lang.String property)Constructs an immutableEdgePropertyRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EdgePropertyRef other)booleanequals(java.lang.Object other)inthashCode()EdgePropertyRefwithElement(PathElement element)Returns a copy of thisEdgePropertyRefwithelementreplaced.EdgePropertyRefwithProperty(java.lang.String property)Returns a copy of thisEdgePropertyRefwithpropertyreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.EdgePropertyReftype.
-
ELEMENT
public static final Name ELEMENT
Name of thecom.gdblab.pathAlgebra.expressions.EdgePropertyRef.elementfield.
-
PROPERTY
public static final Name PROPERTY
Name of thecom.gdblab.pathAlgebra.expressions.EdgePropertyRef.propertyfield.
-
element
public final PathElement element
-
property
public final java.lang.String property
-
-
Constructor Detail
-
EdgePropertyRef
public EdgePropertyRef(PathElement element, java.lang.String property)
Constructs an immutableEdgePropertyRef.
-
-
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(EdgePropertyRef other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgePropertyRef>
-
withElement
public EdgePropertyRef withElement(PathElement element)
Returns a copy of thisEdgePropertyRefwithelementreplaced.
-
withProperty
public EdgePropertyRef withProperty(java.lang.String property)
Returns a copy of thisEdgePropertyRefwithpropertyreplaced.
-
-