| Constructor and Description |
|---|
JdkUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeUrl(String url) |
String |
format(Date date,
String format) |
Object |
getArrayElement(Object array,
int i) |
int |
getArraySize(Object array) |
Boolean |
getBoolean(Object json,
String field) |
Date |
getDateTime(Object json,
String field) |
Double |
getDouble(Object json,
String field) |
Object |
getField(Object json,
String field) |
Set<String> |
getFields(Object json) |
Integer |
getInteger(Object json,
String field) |
Long |
getLong(Object json,
String field) |
String |
getString(Object json,
String field) |
Object |
parse(String jsonStr) |
getINSTANCE, setInstancepublic JdkUtils()
public Boolean getBoolean(Object json, String field)
getBoolean in class WSUtilsnull if field does not existpublic Integer getInteger(Object json, String field)
getInteger in class WSUtilsnull if field does not existpublic Date getDateTime(Object json, String field)
getDateTime in class WSUtilsnull if field does not existpublic int getArraySize(Object array)
getArraySize in class WSUtilspublic Object getArrayElement(Object array, int i)
getArrayElement in class WSUtilsCopyright © 2009-2012 SonarSource. All Rights Reserved.