@Test public void validEnum() { Node node = new Node("root", null, null); node.setValueType(ValueType.makeEnum("a", "b", "c")); node.setValue(new Value("c")); }
public static ValueType makeEnum(String... enums) { return makeEnum(Arrays.asList(enums)); }
ValueType { public static ValueType makeEnum(String... enums) { return makeEnum(Arrays.asList(enums)); } }
ValueType { public static ValueType makeEnum(String... enums) { return makeEnum(Arrays.asList(enums)); } private  ValueType(String jsonName); private  ValueType(String rawName, String builtName); private  ValueType(String rawName, String builtName, Collection<String> enums); private  ValueType(Collection<String> enums); }
ValueType { public static ValueType makeEnum(String... enums) { return makeEnum(Arrays.asList(enums)); } private  ValueType(String jsonName); private  ValueType(String rawName, String builtName); private  ValueType(String rawName, String builtName, Collection<String> enums); private  ValueType(Collection<String> enums); String toJsonString(); String getRawName(); boolean compare(ValueType other); Collection<String> getEnums(); static ValueType makeEnum(String... enums); static ValueType makeEnum(Collection<String> enums); static ValueType makeBool(String true_, String false_); static ValueType toValueType(String type); @Override boolean equals(Object other); @Override int hashCode(); }
ValueType { public static ValueType makeEnum(String... enums) { return makeEnum(Arrays.asList(enums)); } private  ValueType(String jsonName); private  ValueType(String rawName, String builtName); private  ValueType(String rawName, String builtName, Collection<String> enums); private  ValueType(Collection<String> enums); String toJsonString(); String getRawName(); boolean compare(ValueType other); Collection<String> getEnums(); static ValueType makeEnum(String... enums); static ValueType makeEnum(Collection<String> enums); static ValueType makeBool(String true_, String false_); static ValueType toValueType(String type); @Override boolean equals(Object other); @Override int hashCode(); static final String JSON_NUMBER; static final String JSON_INT; static final String JSON_STRING; static final String JSON_BOOL; static final String JSON_MAP; static final String JSON_ARRAY; static final String JSON_TIME; static final String JSON_ENUM; static final String JSON_BINARY; static final String JSON_DYNAMIC; static final ValueType NUMBER; static final ValueType STRING; static final ValueType BOOL; static final ValueType MAP; static final ValueType ARRAY; static final ValueType TIME; static final ValueType DYNAMIC; static final ValueType ENUM; static final ValueType BINARY; }