public interface KeyValueEntityConverter
KeyValueEntity| Modifier and Type | Method and Description |
|---|---|
<T> T |
toEntity(Class<T> entityClass,
KeyValueEntity entity)
Converts a
KeyValueEntity to entity |
KeyValueEntity |
toKeyValue(Object entityInstance)
Converts the instance entity to
KeyValueEntity |
KeyValueEntity toKeyValue(Object entityInstance)
KeyValueEntityentityInstance - the instnaceKeyValueEntity instanceIdNotFoundException - when the entityInstance hasn't a field with IdNullPointerException - when the entityInstance is null<T> T toEntity(Class<T> entityClass, KeyValueEntity entity)
KeyValueEntity to entityT - the entity typeentityClass - the entity classentity - the KeyValueEntity to be convertedKeyValueEntityIdNotFoundException - when the entityInstance hasn't a field with IdNullPointerException - when the entityInstance is nullCopyright © 2017–2019 Eclipse Foundation. All rights reserved.