Class DiscoveryResultDTOMapper
java.lang.Object
org.openhab.core.config.discovery.dto.DiscoveryResultDTOMapper
The
DiscoveryResultDTOMapper
is a utility class to map discovery results into discovery result transfer
objects.- Author:
- Stefan Bussweiler - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryResultDTO
map
(DiscoveryResult discoveryResult) Maps discovery result into discovery result data transfer object.static DiscoveryResult
map
(DiscoveryResultDTO discoveryResultDTO) Maps discovery result data transfer object into discovery result.
-
Constructor Details
-
DiscoveryResultDTOMapper
public DiscoveryResultDTOMapper()
-
-
Method Details
-
map
Maps discovery result into discovery result data transfer object.- Parameters:
discoveryResult
- the discovery result- Returns:
- the discovery result data transfer object
-
map
Maps discovery result data transfer object into discovery result.- Parameters:
discoveryResultDTO
- the discovery result data transfer object- Returns:
- the discovery result
-