S
- the source type which is supported as input of the transformationT
- the target type which is supported as output of the transformationpublic interface Transformer<S,T> extends Priorized
Used by Transformers
to transform a certain type into another one. This
permits to transform existing classes into interfaces or other classes without modifying them.
DEFAULT_PRIORITY
Modifier and Type | Method and Description |
---|---|
default int |
getPriority()
As multiple adapters for the same pair of types might be present, the priority is used to specify precedence.
|
Class<S> |
getSourceClass()
Returns the source type for which this factory can perform transformations.
|
Class<T> |
getTargetClass()
Returns the target type for which this factory can perform transformations.
|
T |
make(S source)
Generates a new object of the desired target type for the given object to transform.
|
default int getPriority()
getPriority
in interface Priorized
Class<S> getSourceClass()
Class<T> getTargetClass()
Copyright © 2018. All rights reserved.