Class DiscoveryResultDTOMapper

java.lang.Object
org.openhab.core.config.discovery.dto.DiscoveryResultDTOMapper

@NonNullByDefault public class DiscoveryResultDTOMapper extends Object
The DiscoveryResultDTOMapper is a utility class to map discovery results into discovery result transfer objects.
Author:
Stefan Bussweiler - Initial contribution
  • Constructor Details

    • DiscoveryResultDTOMapper

      public DiscoveryResultDTOMapper()
  • Method Details

    • map

      public static DiscoveryResultDTO map(DiscoveryResult discoveryResult)
      Maps discovery result into discovery result data transfer object.
      Parameters:
      discoveryResult - the discovery result
      Returns:
      the discovery result data transfer object
    • map

      public static DiscoveryResult map(DiscoveryResultDTO discoveryResultDTO)
      Maps discovery result data transfer object into discovery result.
      Parameters:
      discoveryResultDTO - the discovery result data transfer object
      Returns:
      the discovery result