S
- the type of the input objectT
- the type of the domain objectpublic abstract class AbstractInputConverter<S,T> extends Object implements InputConverter<S,T>
InputConverter
implementation.Constructor and Description |
---|
AbstractInputConverter(Class<T> domainType)
Constructs a
AbstractInputConverter . |
Modifier and Type | Method and Description |
---|---|
List<T> |
convert(Iterable<? extends S> objects)
Converts all given input objects into domain objects.
|
T |
convert(S input)
Converts the given input object into a domain object.
|
protected T |
instantiateDomainObject(S input)
Instantiates the domain object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert
public AbstractInputConverter(Class<T> domainType)
AbstractInputConverter
.domainType
- the resource typepublic T convert(S input)
convert
in interface InputConverter<S,T>
input
- the inputpublic List<T> convert(Iterable<? extends S> objects)
convert
in interface InputConverter<S,T>
objects
- the object, must not be null.