ObjectType - public class StringifiableDefault<ObjectType> extends java.lang.Object implements Stringifiable<ObjectType>
| Constructor and Description |
|---|
StringifiableDefault(java.lang.Object obj) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ObjectType> |
getValuesFromJSONArray(org.json.JSONArray array) |
java.util.Set<ObjectType> |
getValuesFromStringSet(java.util.Set<java.lang.String> strValues)
Converts a set of string node ids using valueOf.
|
ObjectType |
valueOf(java.lang.String strValue)
Converts a string representation of a node id into the appropriate node
id type.
|
public StringifiableDefault(java.lang.Object obj)
obj - Seed object used to infer return type for
valueOf(String) method.public ObjectType valueOf(java.lang.String strValue)
StringifiablevalueOf in interface Stringifiable<ObjectType>strValue - strValue.public java.util.Set<ObjectType> getValuesFromStringSet(java.util.Set<java.lang.String> strValues)
StringifiablegetValuesFromStringSet in interface Stringifiable<ObjectType>public java.util.Set<ObjectType> getValuesFromJSONArray(org.json.JSONArray array) throws org.json.JSONException
getValuesFromJSONArray in interface Stringifiable<ObjectType>org.json.JSONException