/** * Returns the CollationMaxVariable from the string value. * * @param collationMaxVariable the string value. * @return the read concern */ public static CollationMaxVariable fromString(final String collationMaxVariable) { if (collationMaxVariable != null) { for (CollationMaxVariable maxVariable : CollationMaxVariable.values()) { if (collationMaxVariable.equals(maxVariable.value)) { return maxVariable; } } } throw new IllegalArgumentException(format("'%s' is not a valid collationMaxVariable", collationMaxVariable)); } }
/** * Returns the CollationMaxVariable from the string value. * * @param collationMaxVariable the string value. * @return the read concern */ public static CollationMaxVariable fromString(final String collationMaxVariable) { if (collationMaxVariable != null) { for (CollationMaxVariable maxVariable : CollationMaxVariable.values()) { if (collationMaxVariable.equals(maxVariable.value)) { return maxVariable; } } } throw new IllegalArgumentException(format("'%s' is not a valid collationMaxVariable", collationMaxVariable)); } }