com.hazelcast.util
Class JsonUtil

java.lang.Object
  extended by com.hazelcast.util.JsonUtil

public final class JsonUtil
extends Object

Utility class to deal with Json.


Method Summary
static com.eclipsesource.json.JsonArray getArray(com.eclipsesource.json.JsonObject object, String field)
           
static com.eclipsesource.json.JsonArray getArray(com.eclipsesource.json.JsonObject object, String field, com.eclipsesource.json.JsonArray defaultValue)
           
static boolean getBoolean(com.eclipsesource.json.JsonObject object, String field)
           
static boolean getBoolean(com.eclipsesource.json.JsonObject object, String field, boolean defaultValue)
           
static double getDouble(com.eclipsesource.json.JsonObject object, String field)
           
static double getDouble(com.eclipsesource.json.JsonObject object, String field, double defaultValue)
           
static float getFloat(com.eclipsesource.json.JsonObject object, String field)
           
static float getFloat(com.eclipsesource.json.JsonObject object, String field, float defaultValue)
           
static int getInt(com.eclipsesource.json.JsonObject object, String field)
           
static int getInt(com.eclipsesource.json.JsonObject object, String field, int defaultValue)
           
static long getLong(com.eclipsesource.json.JsonObject object, String field)
           
static long getLong(com.eclipsesource.json.JsonObject object, String field, long defaultValue)
           
static com.eclipsesource.json.JsonObject getObject(com.eclipsesource.json.JsonObject object, String field)
           
static com.eclipsesource.json.JsonObject getObject(com.eclipsesource.json.JsonObject object, String field, com.eclipsesource.json.JsonObject defaultValue)
           
static String getString(com.eclipsesource.json.JsonObject object, String field)
           
static String getString(com.eclipsesource.json.JsonObject object, String field, String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInt

public static int getInt(com.eclipsesource.json.JsonObject object,
                         String field)

getInt

public static int getInt(com.eclipsesource.json.JsonObject object,
                         String field,
                         int defaultValue)

getLong

public static long getLong(com.eclipsesource.json.JsonObject object,
                           String field)

getLong

public static long getLong(com.eclipsesource.json.JsonObject object,
                           String field,
                           long defaultValue)

getDouble

public static double getDouble(com.eclipsesource.json.JsonObject object,
                               String field)

getDouble

public static double getDouble(com.eclipsesource.json.JsonObject object,
                               String field,
                               double defaultValue)

getFloat

public static float getFloat(com.eclipsesource.json.JsonObject object,
                             String field)

getFloat

public static float getFloat(com.eclipsesource.json.JsonObject object,
                             String field,
                             float defaultValue)

getString

public static String getString(com.eclipsesource.json.JsonObject object,
                               String field)

getString

public static String getString(com.eclipsesource.json.JsonObject object,
                               String field,
                               String defaultValue)

getBoolean

public static boolean getBoolean(com.eclipsesource.json.JsonObject object,
                                 String field)

getBoolean

public static boolean getBoolean(com.eclipsesource.json.JsonObject object,
                                 String field,
                                 boolean defaultValue)

getArray

public static com.eclipsesource.json.JsonArray getArray(com.eclipsesource.json.JsonObject object,
                                                        String field)

getArray

public static com.eclipsesource.json.JsonArray getArray(com.eclipsesource.json.JsonObject object,
                                                        String field,
                                                        com.eclipsesource.json.JsonArray defaultValue)

getObject

public static com.eclipsesource.json.JsonObject getObject(com.eclipsesource.json.JsonObject object,
                                                          String field)

getObject

public static com.eclipsesource.json.JsonObject getObject(com.eclipsesource.json.JsonObject object,
                                                          String field,
                                                          com.eclipsesource.json.JsonObject defaultValue)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.