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 | 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.
|
java.lang.Class<?> |
getUnderlyingType(java.lang.Class<?> owningClass,
java.lang.reflect.Type declaredType) |
Extract the underlying type from the declared type.
|
java.lang.Class<?> getUnderlyingType(java.lang.Class<?> owningClass, java.lang.reflect.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.