Schnittstelle TypeConverter
- Alle bekannten Implementierungsklassen:
StringToBooleanConverter
public interface TypeConverter
Converts a type to another type.
- Version:
- $Id: $
-
Methodenübersicht
-
Methodendetails
-
accept
Returns true if and only if the converter can convert the passed value to the passed class.- Parameter:
value
- the value to convert, may be null.targetClass
- the target class, not null.- Gibt zurück:
- whether the converter can convert the value to the passed target class.
-
convert
Converts the passed value to the passed class. Is only called if accept has returned true.- Parameter:
value
- the value to convert, may be null.targetClass
- the target class, not null.- Gibt zurück:
- the converted value.
-