public interface Format
A formatter deals with object value. An object value is an instance of a class that wrap a single value susceptible to be represented as a single string - a sort of data atom, e.g. java.io.File or java.net.URL.
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object object)
Return a string representation, suitable for user interface display, of the given object value.
|
Object |
parse(String value)
Create object instance and initialize it from given string representation.
|
String format(Object object)
object argument is null.object - object value to format.object argument is null.Object parse(String value) throws ParseException
value - object string representation.value argument is null or empty.ParseException - if given string attribute cannot be parsed.Copyright © 2018. All rights reserved.