Class ThingResourceMapper<P,R>
java.lang.Object
org.eclipse.ditto.things.model.signals.commands.ThingResourceMapper<P,R>
- Type Parameters:
P- an extra parameter passed to the visit methodR- the result of the mapping
Maps a JsonPointer to another value by using a
ThingResourceVisitor.-
Method Summary
Modifier and TypeMethodDescriptionstatic <P,R> ThingResourceMapper<P, R> from(ThingResourceVisitor<P, R> visitor) Maps the given path to another value.
-
Method Details
-
from
- Type Parameters:
P- an extra parameter passed to the visit methodR- the result of the mapping- Parameters:
visitor- the visitor used to map the JsonPointer- Returns:
- new instance of ThingResourceMapper
-
map
Maps the given path to another value.- Parameters:
path- the path that is mappedparam- the extra parameter passed through to the visit method- Returns:
- the mapping result
-