Beispiel #1
0
  public static RateChangeStatus extract(String statusString) {
    for (RateChangeStatus rateChangeStatus : values()) {
      if (StringUtil.areEqual(rateChangeStatus.getStringForTable(), statusString)) {
        return rateChangeStatus;
      }
    }

    // Should never reach here
    // Added this to avoid compilation errors
    return WORKING;
  }
  public static RateChangeProcessStepStartFlag extract(String stepStartFlagString) {
    for (RateChangeProcessStepStartFlag stepStartFlag : values()) {
      if (StringUtil.areEqual(stepStartFlag.getStringForTable(), stepStartFlagString)) {
        return stepStartFlag;
      }
    }

    // Should never reach here
    // Added this to avoid compilation errors
    return HOLD;
  }
Beispiel #3
0
  public static OperationValue extract(String operationStr) {

    if (StringUtil.isBlank(operationStr)) {
      return UNKNOWN;
    }

    for (OperationValue operationValue : values()) {
      if (operationStr.equalsIgnoreCase(operationValue.name().toLowerCase(Locale.ENGLISH))) {
        return operationValue;
      }
    }

    // Should not reach here
    return UNKNOWN;
  }