Interface LineNumberFormatter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String format​(int lineNumber)
      Formats the given line number into a String.
      int getMaxLength​(int maxLineNumber)
      Returns the maximum number of characters of any string returned by format(int) provided a certain maximum line number.
    • Method Detail

      • format

        java.lang.String format​(int lineNumber)
        Formats the given line number into a String.
        Parameters:
        lineNumber - the line number
        Returns:
        the formatted line number
      • getMaxLength

        int getMaxLength​(int maxLineNumber)
        Returns the maximum number of characters of any string returned by format(int) provided a certain maximum line number.
        Parameters:
        maxLineNumber - the maximum line number
        Returns:
        the maximum length