|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.jsonpath.JsonUtil
public class JsonUtil
User: kalle stenflo Date: 2/4/11 Time: 1:01 PM
| Constructor Summary | |
|---|---|
JsonUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
isContainer(Object obj)
checks if object is instanceof java.util.List or java.util.Map |
static boolean |
isList(Object obj)
checks if object is instanceof java.util.List |
static boolean |
isMap(Object obj)
checks if object is instanceof java.util.Map |
static List<Object> |
toList(Object obj)
converts casts to java.util.List |
static Map<Object,Object> |
toMap(Object obj)
converts casts to java.util.Map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonUtil()
| Method Detail |
|---|
public static boolean isContainer(Object obj)
instanceof java.util.List or java.util.Map
obj - object to check
public static boolean isList(Object obj)
instanceof java.util.List
obj - object to check
public static boolean isMap(Object obj)
instanceof java.util.Map
obj - object to check
public static List<Object> toList(Object obj)
java.util.List
obj -
public static Map<Object,Object> toMap(Object obj)
java.util.Map
obj -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||