Interface BooleanFunction5<A,​B,​C,​D,​E>

  • Type Parameters:
    A - type of the first parameter
    B - type of the second parameter
    C - type of the third parameter
    D - type of the fourth parameter
    E - type of the fifth parameter
    All Superinterfaces:
    ConstraintFunction
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface BooleanFunction5<A,​B,​C,​D,​E>
    extends ConstraintFunction
    A helper function used to define constraints which involves five parameters.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean apply​(A a, B b, C c, D d, E e)
      Checks whether the value combination give for the parameters is allowed.
      default boolean check​(List<?> arguments)
      Checks whether the given values are a valid combination or one which should not appear.
    • Method Detail

      • check

        default boolean check​(List<?> arguments)
        Description copied from interface: ConstraintFunction
        Checks whether the given values are a valid combination or one which should not appear.
        Specified by:
        check in interface ConstraintFunction
        Parameters:
        arguments - the values
        Returns:
        true iff the values form a valid combination
      • apply

        boolean apply​(A a,
                      B b,
                      C c,
                      D d,
                      E e)
        Checks whether the value combination give for the parameters is allowed.
        Parameters:
        a - the value for the first parameter
        b - the value for the second parameter
        c - the value for the third parameter
        d - the value for the fourth parameters
        e - the value for the fifth parameters
        Returns:
        whether the value combination is allowed