DATATYPE - Data type to be formatted@NotThreadSafe public class FormatableObject<DATATYPE> extends Object implements IFormatableObject<DATATYPE>
| Constructor and Description |
|---|
FormatableObject(DATATYPE aValue,
IFunction<? super DATATYPE,? extends String> aFormatter)
Init the field with a value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
IFunction<? super DATATYPE,? extends String> |
getFormatter() |
DATATYPE |
getValue()
Get the original value.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsString@Nullable public DATATYPE getValue()
IFormatableObjectgetValue in interface IFormatableObject<DATATYPE>null.@Nullable public IFunction<? super DATATYPE,? extends String> getFormatter()
getFormatter in interface IFormatableObject<DATATYPE>null.Copyright © 2014–2020 Philip Helger. All rights reserved.