Package com.helger.commons.format
Class AbstractFormatterString
java.lang.Object
com.helger.commons.format.AbstractFormatterString
- Direct Known Subclasses:
FormatterMinLengthAddLeading
,FormatterMinLengthAddTrailing
,FormatterStringPrefixAndSuffix
,FormatterStringSkipPrefixAndSuffix
Base implementation class of the
Function
interface that provides the
common functionality.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getValueAsString
(Object aValue) Convert the source value to a string by using theTypeConverter
.toString()
-
Constructor Details
-
AbstractFormatterString
protected AbstractFormatterString()Default constructor
-
-
Method Details
-
getValueAsString
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
.
-
toString
-