Class 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>
    An RPQ one-or-more repetition of a sub-expression, with an optional restrictor
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the com.gdblab.pathAlgebra.syntax.Plus type.
      • EXPRESSION

        public static final Name EXPRESSION
        Name of the com.gdblab.pathAlgebra.syntax.Plus.expression field.
      • RESTRICTOR

        public static final Name RESTRICTOR
        Name of the com.gdblab.pathAlgebra.syntax.Plus.restrictor field.
      • expression

        public final Rpq expression
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

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

        public Plus withExpression​(Rpq expression)
        Returns a copy of this Plus with expression replaced.
      • builder

        public static Plus.Builder builder()
        Creates a new fluent builder for Plus.