public static DecisionTree.SplitCharacteristic fromValue(String v) { for (DecisionTree.SplitCharacteristic c: DecisionTree.SplitCharacteristic.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
public static DecisionTree.SplitCharacteristic fromValue(String v) { for (DecisionTree.SplitCharacteristic c: DecisionTree.SplitCharacteristic.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }