Package com.gdblab.pathAlgebra.syntax
Class Concatenation
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.Concatenation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Concatenation>
public class Concatenation extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Concatenation>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Rpqleftstatic NameLEFTName of thecom.gdblab.pathAlgebra.syntax.Concatenation.leftfield.Rpqrightstatic NameRIGHTName of thecom.gdblab.pathAlgebra.syntax.Concatenation.rightfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.Concatenationtype.
-
Constructor Summary
Constructors Constructor Description Concatenation(Rpq left, Rpq right)Constructs an immutableConcatenation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Concatenation other)booleanequals(java.lang.Object other)inthashCode()ConcatenationwithLeft(Rpq left)Returns a copy of thisConcatenationwithleftreplaced.ConcatenationwithRight(Rpq right)Returns a copy of thisConcatenationwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.Concatenationtype.
-
LEFT
public static final Name LEFT
Name of thecom.gdblab.pathAlgebra.syntax.Concatenation.leftfield.
-
RIGHT
public static final Name RIGHT
Name of thecom.gdblab.pathAlgebra.syntax.Concatenation.rightfield.
-
left
public final Rpq left
-
right
public final Rpq right
-
-
Constructor Detail
-
Concatenation
public Concatenation(Rpq left, Rpq right)
Constructs an immutableConcatenation.
-
-
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(Concatenation other)
- Specified by:
compareToin interfacejava.lang.Comparable<Concatenation>
-
withLeft
public Concatenation withLeft(Rpq left)
Returns a copy of thisConcatenationwithleftreplaced.
-
withRight
public Concatenation withRight(Rpq right)
Returns a copy of thisConcatenationwithrightreplaced.
-
-