Package com.gdblab.pathAlgebra.syntax
Class EdgePattern
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.EdgePattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgePattern>
public class EdgePattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EdgePattern>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description EdgeDirectiondirectionstatic NameDIRECTIONName of thecom.gdblab.pathAlgebra.syntax.EdgePattern.directionfield.Optional<Rpq>rpqstatic NameRPQName of thecom.gdblab.pathAlgebra.syntax.EdgePattern.rpqfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.EdgePatterntype.
-
Constructor Summary
Constructors Constructor Description EdgePattern(EdgeDirection direction, Optional<Rpq> rpq)Constructs an immutableEdgePattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EdgePattern other)booleanequals(java.lang.Object other)inthashCode()EdgePatternwithDirection(EdgeDirection direction)Returns a copy of thisEdgePatternwithdirectionreplaced.EdgePatternwithRpq(Optional<Rpq> rpq)Returns a copy of thisEdgePatternwithrpqreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.EdgePatterntype.
-
DIRECTION
public static final Name DIRECTION
Name of thecom.gdblab.pathAlgebra.syntax.EdgePattern.directionfield.
-
RPQ
public static final Name RPQ
Name of thecom.gdblab.pathAlgebra.syntax.EdgePattern.rpqfield.
-
direction
public final EdgeDirection direction
-
-
Constructor Detail
-
EdgePattern
public EdgePattern(EdgeDirection direction, Optional<Rpq> rpq)
Constructs an immutableEdgePattern.
-
-
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(EdgePattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgePattern>
-
withDirection
public EdgePattern withDirection(EdgeDirection direction)
Returns a copy of thisEdgePatternwithdirectionreplaced.
-
withRpq
public EdgePattern withRpq(Optional<Rpq> rpq)
Returns a copy of thisEdgePatternwithrpqreplaced.
-
-