T
- the source type of the converter.U
- the target type of the converter.public abstract class TypedConverter<T,U> extends Object implements Converter<T,U>
Constructor and Description |
---|
TypedConverter(Type sourceType,
Type returnType) |
Modifier and Type | Method and Description |
---|---|
static <T,U> TypedConverter<T,U> |
forConverter(Converter<T,U> converter) |
Class<?> |
getReturnClass() |
Type |
getReturnType() |
Type |
getSourceType() |
boolean |
hasVariableReturnType() |
boolean |
isReturnTypeCompatible(Type type) |
boolean |
isSourceTypeCompatible(Type type) |
public static <T,U> TypedConverter<T,U> forConverter(Converter<T,U> converter)
public Type getSourceType()
public Type getReturnType()
public boolean hasVariableReturnType()
public Class<?> getReturnClass()
public boolean isSourceTypeCompatible(Type type)
public boolean isReturnTypeCompatible(Type type)
Copyright © 2014. All rights reserved.