org.jboss.forge.convert.impl
Class MethodConverter<S,T>
java.lang.Object
org.jboss.forge.convert.AbstractConverter<S,T>
org.jboss.forge.convert.impl.MethodConverter<S,T>
- All Implemented Interfaces:
- Converter<S,T>
@Vetoed
public class MethodConverter<S,T>
- extends AbstractConverter<S,T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodConverter
public MethodConverter(Class<S> sourceType,
Class<T> targetType,
Object instance,
Method method)
- Creates a converter based in a method
- Parameters:
instance - the target object. May be null if the method is staticmethod - sourceType - targetType -
convert
public T convert(S source)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.