예제 #1
0
 private static AlertConfigDto fromConfig(AlertConfig alertConfig) {
   return ImmutableAlertConfigDto.builder()
       .transactionType(alertConfig.transactionType())
       .percentile(alertConfig.percentile())
       .timePeriodMinutes(alertConfig.timePeriodMinutes())
       .thresholdMillis(alertConfig.thresholdMillis())
       .minTransactionCount(alertConfig.minTransactionCount())
       .addAllEmailAddresses(alertConfig.emailAddresses())
       .version(alertConfig.version())
       .build();
 }
예제 #2
0
 @Override
 public int compare(@Nullable AlertConfig left, @Nullable AlertConfig right) {
   checkNotNull(left);
   checkNotNull(right);
   return left.transactionType().compareToIgnoreCase(right.transactionType());
 }