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, setInstance
public JdkUtils()
public Boolean getBoolean(Object json, String field)
getBoolean
in class WSUtils
null
if field does not existpublic Integer getInteger(Object json, String field)
getInteger
in class WSUtils
null
if field does not existpublic Date getDateTime(Object json, String field)
getDateTime
in class WSUtils
null
if field does not existpublic int getArraySize(Object array)
getArraySize
in class WSUtils
public Object getArrayElement(Object array, int i)
getArrayElement
in class WSUtils
Copyright © 2009-2012 SonarSource. All Rights Reserved.