- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {SimpleDateFormat s =
String pattern;new SimpleDateFormat(pattern)
String template;Locale locale;new SimpleDateFormat(template, locale)
new SimpleDateFormat()
- Smart code suggestions by Codota
}
Object readResolve() throws ObjectStreamException { return Types.fromPrimitiveString(typeAsString); } }
private static Type typeFromJson(JsonNode json) { if (json.isTextual()) { return Types.fromPrimitiveString(json.asText()); } else if (json.isObject()) { String type = json.get(TYPE).asText(); if (STRUCT.equals(type)) { return structFromJson(json); } else if (LIST.equals(type)) { return listFromJson(json); } else if (MAP.equals(type)) { return mapFromJson(json); } } throw new IllegalArgumentException("Cannot parse type from json: " + json); }