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