Class LineNumberList.SimpleLineNumberFormatter

    • Method Summary

      All Methods Instance Methods Concrete 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 LineNumberFormatter.format(int) provided a certain maximum line number.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleLineNumberFormatter

        private SimpleLineNumberFormatter()
    • Method Detail

      • format

        public java.lang.String format​(int lineNumber)
        Description copied from interface: LineNumberFormatter
        Formats the given line number into a String.
        Specified by:
        format in interface LineNumberFormatter
        Parameters:
        lineNumber - the line number
        Returns:
        the formatted line number