Package org.hawaiiframework.converter
Interface ModelConverter<S,T>
- Type Parameters:
S
- the source typeT
- the target type
- All Known Implementing Classes:
AbstractModelConverter
,ObjectErrorResourceAssembler
,ValidationErrorResourceAssembler
public interface ModelConverter<S,T>
Converter interface for converting between two types.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionConverts all given source objects into target objects.Converts the given source object into a new instance of target object.void
Converts the given source object into the target object.
-
Method Details
-
convert
Converts the given source object into a new instance of target object.- Parameters:
source
- the source object- Returns:
- the target object
-
convert
Converts the given source object into the target object.- Parameters:
source
- the source objecttarget
- the target object
-
convert
Converts all given source objects into target objects.- Parameters:
objects
- the object, must not be null.- Returns:
- the target objects
-