EnhancedPojoFormatterDefaultEnhancedPojoFormatter, DefaultPojoFormatter, EnhancedPojoFormatterWrapperEnhancedPojoFormatter instead. Use of this interface typically requires creating additional
StringBuidler instances.@Deprecated public interface PojoFormatter
String representation of a POJO. A new instance will be
created for each time that Pojomator.doToString(Object) is called.| Modifier and Type | Method | Description |
|---|---|---|
String |
getPropertyPrefix(PropertyElement property) |
|
String |
getPropertySuffix(PropertyElement property) |
|
String |
getToStringPrefix(Class<?> pojoClass) |
Deprecated.
|
String |
getToStringSuffix(Class<?> pojoClass) |
Deprecated.
|
@Deprecated String getToStringPrefix(Class<?> pojoClass)
EnhancedPojoFormatter.appendToStringPrefix(StringBuilder, Class) insteadString which should appear at the beginning of the result of
toString().pojoClass - the class for which toString() is being calledtoString()Object.toString()@Deprecated String getToStringSuffix(Class<?> pojoClass)
EnhancedPojoFormatter.appendToStringSuffix(StringBuilder, Class) insteadString which should appear at the end of the result of
toString().pojoClass - the class for which toString() is being calledtoString()Object.toString()@Deprecated String getPropertyPrefix(PropertyElement property)
String prefix for a given PropertyElement. This method will be called
once for each property used in the result of toString(), in the order in which
those properties will appear in that result, and before the call to
PropertyFormatter.format(Object) for the property's value.property - the property for which to generate a prefix@Deprecated String getPropertySuffix(PropertyElement property)
String suffix for a given PropertyElement. This method will be called
once after each call to PropertyFormatter.format(Object) for the property's value.property - the property for which to generate a suffixCopyright © 2008–2018. All rights reserved.