Package com.gdblab.pathAlgebra.syntax
Class Plus
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.Plus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Plus>
public class Plus extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Plus>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Rpqexpressionstatic NameEXPRESSIONName of thecom.gdblab.pathAlgebra.syntax.Plus.expressionfield.Optional<RpqRestrictor>restrictorstatic NameRESTRICTORName of thecom.gdblab.pathAlgebra.syntax.Plus.restrictorfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.Plustype.
-
Constructor Summary
Constructors Constructor Description Plus(Rpq expression, Optional<RpqRestrictor> restrictor)Constructs an immutablePlus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Plus other)booleanequals(java.lang.Object other)inthashCode()PluswithExpression(Rpq expression)Returns a copy of thisPluswithexpressionreplaced.PluswithRestrictor(Optional<RpqRestrictor> restrictor)Returns a copy of thisPluswithrestrictorreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.Plustype.
-
EXPRESSION
public static final Name EXPRESSION
Name of thecom.gdblab.pathAlgebra.syntax.Plus.expressionfield.
-
RESTRICTOR
public static final Name RESTRICTOR
Name of thecom.gdblab.pathAlgebra.syntax.Plus.restrictorfield.
-
expression
public final Rpq expression
-
restrictor
public final Optional<RpqRestrictor> restrictor
-
-
Constructor Detail
-
Plus
public Plus(Rpq expression, Optional<RpqRestrictor> restrictor)
Constructs an immutablePlus.
-
-
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(Plus other)
- Specified by:
compareToin interfacejava.lang.Comparable<Plus>
-
withExpression
public Plus withExpression(Rpq expression)
Returns a copy of thisPluswithexpressionreplaced.
-
withRestrictor
public Plus withRestrictor(Optional<RpqRestrictor> restrictor)
Returns a copy of thisPluswithrestrictorreplaced.
-
-