Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 @Override
 public int compare(@Nullable AlertConfig left, @Nullable AlertConfig right) {
   checkNotNull(left);
   checkNotNull(right);
   return left.transactionType().compareToIgnoreCase(right.transactionType());
 }