Class Join<T>

  • Type Parameters:
    T - the type of object this condition accepts.
    All Implemented Interfaces:
    Descriptable<Condition<T>>
    Direct Known Subclasses:
    AllOf, AnyOf

    public abstract class Join<T>
    extends Condition<T>
    Join of two or more Conditions.
    Author:
    Yvonne Wang, Mikhail Mazursky
    • Constructor Detail

      • Join

        protected Join​(Condition<? super T>... conditions)
        Creates a new Join.
        Parameters:
        conditions - the conditions to join.
        Throws:
        java.lang.NullPointerException - if the given array is null.
        java.lang.NullPointerException - if any of the elements in the given array is null.
      • Join

        protected Join​(java.lang.Iterable<? extends Condition<? super T>> conditions)
        Creates a new Join.
        Parameters:
        conditions - the conditions to join.
        Throws:
        java.lang.NullPointerException - if the given iterable is null.
        java.lang.NullPointerException - if any of the elements in the given iterable is null.
    • Method Detail

      • conditions

        protected final java.util.Collection<Condition<? super T>> conditions()
        Returns the conditions to join.
        Returns:
        the conditions to join.