Interface BooleanFunction1<A>

  • Type Parameters:
    A - type of the first 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 BooleanFunction1<A>
    extends ConstraintFunction
    A helper function used to define constraints which involves one parameter.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean apply​(A a)
      Checks whether the value give for the parameter 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)
        Checks whether the value give for the parameter is allowed.
        Parameters:
        a - the value for the first parameter
        Returns:
        whether the value is allowed