Interface Constraint<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accept​(T value)
      Checks whether the value complies with constraints.
      java.lang.String failMessage()
      Returns a message for value failure, pointing to a parameter using '%s'.
    • 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

        java.lang.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'.