T
- The type to convert from/to the domain-specific counterpart.DomainT
- The domain-specific type.public interface TypeConverter<T,DomainT>
Modifier and Type | Method and Description |
---|---|
ConvertedObject<T> |
fromDomain(DomainT domainObject)
Transforms the given domain-specific object to the general object.
|
Class<DomainT> |
getDomainType()
Getter for an class object of the domain-specific type.
|
Class<T> |
getType()
Getter for an class object of the type to convert from/to the domain-specific counterpart.
|
ConvertedObject<DomainT> |
toDomain(T object)
Transforms the given object to its domain-specific counterpart.
|
@Nonnull Class<T> getType()
T
.@Nonnull Class<DomainT> getDomainType()
DomainT
.@Nonnull ConvertedObject<DomainT> toDomain(@Nullable T object)
object
- The object to transform.ConvertedObject
wrapping the domain-specific object.@Nonnull ConvertedObject<T> fromDomain(@Nullable DomainT domainObject)
domainObject
- The domain-specific object to transform.ConvertedObject
wrapping the general object.Copyright © 2018 SAP SE. All rights reserved.