DATATYPE - Source data type@FunctionalInterface public interface IFormatter<DATATYPE> extends Serializable, Function<DATATYPE,String>
| Modifier and Type | Method and Description |
|---|---|
default IFormatter<DATATYPE> |
andThen(IFormatter<? super String> after) |
String |
apply(DATATYPE aValue)
Convert the passed value to a formatted string according to the pattern.
|
@Nonnull String apply(@Nullable DATATYPE aValue)
apply in interface Function<DATATYPE,String>aValue - The source value to be formatted. May be null.null.IllegalArgumentException - if the formatter does not understand the objectdefault IFormatter<DATATYPE> andThen(IFormatter<? super String> after)
Copyright © 2014–2016 Philip Helger. All rights reserved.