org.codehaus.waffle.bind
Interface StringTransmuter
- All Known Implementing Classes:
- DefaultStringTransmuter
public interface StringTransmuter
Not to be confused with the ValueConverter
this interface is used to simplify converting (transmuting) a
String value into a given type.
- Author:
- Michael Ward
Method Summary |
|
transmute(java.lang.String value,
java.lang.Class<T> toType)
Convert (transmute) the string value into the Type requested |
transmute
<T> T transmute(java.lang.String value,
java.lang.Class<T> toType)
- Convert (transmute) the string value into the Type requested
- Parameters:
value
- the String valuetoType
- the Object type
- Returns:
- The converted Object
Copyright © 2008. All Rights Reserved.