Interface InputReader.ValueChecker<T>

  • Enclosing class:
    InputReader<T,​B extends InputReader<T,​B>>
    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 static interface InputReader.ValueChecker<T>
    Functional interface for checking value constraints
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrorMessages​(T val, java.lang.String itemName)
      Returns the list of error messages due to constraint violations caused by val
    • Method Detail

      • getErrorMessages

        java.util.List<java.lang.String> getErrorMessages​(T val,
                                                          java.lang.String itemName)
        Returns the list of error messages due to constraint violations caused by val
        Parameters:
        val - the value for which constraint violations are checked
        itemName - the name of the item corresponding to this value. May be null.
        Returns:
        - the list of error messages or null if no error has been detected.