Package com.helger.commons.format
Class FormatterMinLengthAddLeading
- java.lang.Object
-
- com.helger.commons.format.AbstractFormatterString
-
- com.helger.commons.format.FormatterMinLengthAddLeading
-
public final class FormatterMinLengthAddLeading extends AbstractFormatterString
A string formatter that ensures that a string has a minimum length by filling the remaining chars with a custom character at front (leading).- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description FormatterMinLengthAddLeading(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
-
FormatterMinLengthAddLeading
public FormatterMinLengthAddLeading(@Nonnegative int nMinLength, char cFill)
-
-
Method Detail
-
getMinLength
@Nonnegative public int getMinLength()
-
getFillChar
public char getFillChar()
-
toString
public String toString()
- Overrides:
toStringin classAbstractFormatterString
-
-