Interface InputReader.InvalidIndexErrorMessagesProvider

  • 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.InvalidIndexErrorMessagesProvider
    Functional interface for providing error messages for invalid index
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrorMessages​(java.lang.String sVal, java.lang.String itemName, int minIndex, int maxIndex)
      Returns the list of error messages for the given string representation of the value
    • Method Detail

      • getErrorMessages

        java.util.List<java.lang.String> getErrorMessages​(java.lang.String sVal,
                                                          java.lang.String itemName,
                                                          int minIndex,
                                                          int maxIndex)
        Returns the list of error messages for the given string representation of the value
        Parameters:
        sVal - the string representation of the index entered by the user
        itemName - the name of the item corresponding to this value. May be null.
        minIndex - the minimum value allowed for the index
        maxIndex - the maximum value allowed for the index
        Returns:
        - the list of error messages or null if no error has been detected.