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
    • Method Detail

      • checkNotNullConditions

        private static <T> T checkNotNullConditions​(T conditions)
      • descriptionPrefix

        public abstract String descriptionPrefix()
        method used to prefix the subclass join description, ex: "all of"
        Returns:
        the prefix to use to build the description.
      • conditionsIsNull

        private static String conditionsIsNull()
      • notNull

        private static <T> T notNull​(T condition)
      • conditions

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