X - The underlying type supported by the entity view type systemY - The type in the entity view model for which this converter adds supportpublic interface TypeConverter<X,Y>
| Modifier and Type | Method and Description |
|---|---|
X |
convertToUnderlyingType(Y object)
Converts the object from entity view model type to the underlying type.
|
Y |
convertToViewType(X object)
Converts the object from underlying type to the entity view model type.
|
Class<?> |
getUnderlyingType(Class<?> owningClass,
Type declaredType)
Extract the underlying type from the declared type.
|
Class<?> getUnderlyingType(Class<?> owningClass, Type declaredType)
owningClass - The class owning the declared typedeclaredType - The declared type as present in the entity view modelY convertToViewType(X object)
object - The object to convertCopyright © 2014–2018 Blazebit. All rights reserved.