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