Facebook
From Big Matamata, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 130
  1. public static MonitoringType fromMonitorType(String monitorType) {
  2.  
  3.         if (monitorType == null || monitorType.isEmpty() || monitorType.isBlank()) {
  4.             throw new InvalidMonitoringType(ExceptionConstant.INVALID_MONITORING_TYPE);
  5.         }
  6.         for (MonitoringType monitoringEmailType : MonitoringType.values()) {
  7.             if (monitoringEmailType.getMonitorType().equals(monitorType)) {
  8.                 return monitoringEmailType;
  9.             }
  10.         }
  11.         throw new InvalidMonitoringType(ExceptionConstant.INVALID_MONITORING_TYPE);
  12.     }

Replies to Pairing rss

Title Name Language When
Re: Pairing Tiny Sheep text 1 Year ago.