Interface Constraint<T>

    • Method Detail

      • accept

        boolean accept​(T value)
        Checks whether the value complies with constraints.
        Parameters:
        value - T; Value to check.
        Returns:
        Whether the value complies with constraints.
      • failMessage

        String failMessage()
        Returns a message for value failure, pointing to a parameter using '%s'.
        Returns:
        Message for value failure, pointing to a parameter using '%s'.