Class Condition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Condition>

    public class Condition
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Condition>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the com.gdblab.pathAlgebra.syntax.Condition type.
      • FUNCTION

        public static final Name FUNCTION
        Name of the com.gdblab.pathAlgebra.syntax.Condition.function field.
      • COMPARE_SYM

        public static final Name COMPARE_SYM
        Name of the com.gdblab.pathAlgebra.syntax.Condition.compareSym field.
      • VALUE

        public static final Name VALUE
        Name of the com.gdblab.pathAlgebra.syntax.Condition.value field.
      • function

        public final Function function
      • value

        public final java.lang.String value
    • Constructor Detail

      • Condition

        public Condition​(Function function,
                         CompareSym compareSym,
                         java.lang.String value)
        Constructs an immutable Condition.
    • 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​(Condition other)
        Specified by:
        compareTo in interface java.lang.Comparable<Condition>
      • withValue

        public Condition withValue​(java.lang.String value)
        Returns a copy of this Condition with value replaced.