Class 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 Detail

      • TYPE_

        public static final Name TYPE_
        Name of the com.gdblab.pathAlgebra.syntax.Alternation type.
      • LEFT

        public static final Name LEFT
        Name of the com.gdblab.pathAlgebra.syntax.Alternation.left field.
      • RIGHT

        public static final Name RIGHT
        Name of the com.gdblab.pathAlgebra.syntax.Alternation.right field.
      • left

        public final Rpq left
      • right

        public final Rpq right
    • Constructor Detail

      • Alternation

        public Alternation​(Rpq left,
                           Rpq right)
        Constructs an immutable Alternation.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Alternation other)
        Specified by:
        compareTo in interface java.lang.Comparable<Alternation>