public final class FormatterMinLengthAddTrailing extends AbstractFormatterString
| Constructor and Description |
|---|
FormatterMinLengthAddTrailing(IFormatter aPrevFormatter,
int nMinLength,
char cFill) |
FormatterMinLengthAddTrailing(int nMinLength,
char cFill) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
char |
getFillChar() |
protected String |
getFormattedValueAsString(Object aValue)
Convert the passed value from Object to formatted String.
|
int |
getMinLength() |
int |
hashCode() |
String |
toString() |
getFormattedValue, getPreviousFormatter, getValueAsStringpublic FormatterMinLengthAddTrailing(@Nonnegative int nMinLength, char cFill)
public FormatterMinLengthAddTrailing(@Nullable IFormatter aPrevFormatter, @Nonnegative int nMinLength, char cFill)
@Nonnegative public int getMinLength()
public char getFillChar()
protected String getFormattedValueAsString(@Nullable Object aValue)
AbstractFormatterStringAbstractFormatterString.getValueAsString(Object) in implementations of this method to do
the base conversion from Object to String.getFormattedValueAsString in class AbstractFormatterStringaValue - The source object. May be null.public String toString()
toString in class AbstractFormatterStringCopyright © 2014–2016 Philip Helger. All rights reserved.