Class Junction

  • All Implemented Interfaces:
    java.io.Serializable, Criterion
    Direct Known Subclasses:
    Conjunction, Disjunction

    public class Junction
    extends java.lang.Object
    implements Criterion
    A sequence of a logical expressions combined by some associative logical operator
    See Also:
    Serialized Form
    • Method Detail

      • add

        public Junction add​(Criterion criterion)
        Adds a criterion to the junction (and/or)
        Parameters:
        criterion - The criterion to add
        Returns:
        this, for method chaining
      • conditions

        public java.lang.Iterable<Criterion> conditions()
        Access the conditions making up the junction
        Returns:
        the criterion
      • toString

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