Package com.helger.commons.format
Class AbstractFormatterString
- java.lang.Object
-
- com.helger.commons.format.AbstractFormatterString
-
- Direct Known Subclasses:
FormatterMinLengthAddLeading,FormatterMinLengthAddTrailing,FormatterStringPrefixAndSuffix,FormatterStringSkipPrefixAndSuffix
public abstract class AbstractFormatterString extends Object implements Function<Object,String>
Base implementation class of theFunctioninterface that provides the common functionality.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFormatterString()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetValueAsString(Object aValue)Convert the source value to a string by using theTypeConverter.StringtoString()
-
-
-
Method Detail
-
getValueAsString
@OverrideOnDemand @Nonnull protected String getValueAsString(@Nullable Object aValue)
Convert the source value to a string by using theTypeConverter.- Parameters:
aValue- The value to be converted to a string- Returns:
- The string representation of the object and never
null.
-
-