S - the type of the object to convertT - the type of the resourcepublic abstract class AbstractResourceAssembler<S,T> extends Object implements ResourceAssembler<S,T>
ResourceAssembler implementation.| Constructor and Description |
|---|
AbstractResourceAssembler(Class<T> resourceType)
Constructs a
AbstractResourceAssembler. |
| Modifier and Type | Method and Description |
|---|---|
protected T |
instantiateResource(S object)
Instantiates the resource.
|
T |
toResource(S object)
Converts the given object into a resource.
|
List<T> |
toResources(Iterable<? extends S> objects)
Converts all given objects into resources.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoResourcepublic AbstractResourceAssembler(Class<T> resourceType)
AbstractResourceAssembler.resourceType - the resource typepublic T toResource(S object)
toResource in interface ResourceAssembler<S,T>object - the objectpublic List<T> toResources(Iterable<? extends S> objects)
toResources in interface ResourceAssembler<S,T>objects - the object, must not be null.