de.ralfebert.rcputils.properties
Interface IValueFormatter<FROM,TO>
- All Known Implementing Classes:
- PropertyValueFormatter, StringValueFormatter
public interface IValueFormatter<FROM,TO>
An IValueFormatter describes a conversion for a value in both directions.
Formatters are used for display and editing, that's why both directions are
there. If you implement a formatter that's only for display, let the parse
method throw an UnsupportedOperationException
.
- Author:
- Ralf Ebert
format
TO format(FROM obj)
parse
FROM parse(TO obj)
Copyright 2005-2011 by Gerry Weirich, Elexis