Package com.helger.commons.format
Class FormatterMinLengthAddTrailing
- java.lang.Object
-
- com.helger.commons.format.AbstractFormatterString
-
- com.helger.commons.format.FormatterMinLengthAddTrailing
-
public final class FormatterMinLengthAddTrailing extends AbstractFormatterString
A string formatter that ensures that a string has a minimum length by filling the remaining chars with a custom character at the end (trailing).- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description FormatterMinLengthAddTrailing(int nMinLength, char cFill)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(Object aValue)booleanequals(Object o)chargetFillChar()intgetMinLength()inthashCode()StringtoString()-
Methods inherited from class com.helger.commons.format.AbstractFormatterString
getValueAsString
-
-
-
-
Constructor Detail
-
FormatterMinLengthAddTrailing
public FormatterMinLengthAddTrailing(@Nonnegative int nMinLength, char cFill)
-
-
Method Detail
-
getMinLength
@Nonnegative public int getMinLength()
-
getFillChar
public char getFillChar()
-
toString
public String toString()
- Overrides:
toStringin classAbstractFormatterString
-
-