| 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()
@CheckForNull public String getString(Object json, String field)
@CheckForNull public Boolean getBoolean(Object json, String field)
getBoolean in class WSUtilsnull if field does not exist@CheckForNull public Integer getInteger(Object json, String field)
getInteger in class WSUtilsnull if field does not exist@CheckForNull public Double getDouble(Object json, String field)
@CheckForNull public Long getLong(Object json, String field)
@CheckForNull public 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–2015 SonarSource. All rights reserved.