Package jrpc.util
Class ParameterChecker
- java.lang.Object
-
- jrpc.util.ParameterChecker
-
public class ParameterChecker extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ParameterChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkJSONObjectNotNull(java.lang.String functionName, java.lang.Class clazz, com.google.gson.JsonObject jsonObject)
static void
doCheckObjectNotNull(java.lang.String command, java.lang.String name, java.lang.Object value)
static void
doCheckPositiveNumber(java.lang.String command, java.lang.String name, java.lang.Number value)
static void
doCheckPositiveNumber(java.lang.String command, java.lang.String name, java.lang.Number value, boolean admitNull)
static void
doCheckString(java.lang.String command, java.lang.String name, java.lang.String value, boolean onlyNull)
-
-
-
Method Detail
-
doCheckString
public static void doCheckString(java.lang.String command, java.lang.String name, java.lang.String value, boolean onlyNull)
-
doCheckObjectNotNull
public static void doCheckObjectNotNull(java.lang.String command, java.lang.String name, java.lang.Object value)
-
doCheckPositiveNumber
public static void doCheckPositiveNumber(java.lang.String command, java.lang.String name, java.lang.Number value)
-
doCheckPositiveNumber
public static void doCheckPositiveNumber(java.lang.String command, java.lang.String name, java.lang.Number value, boolean admitNull)
-
checkJSONObjectNotNull
public static void checkJSONObjectNotNull(java.lang.String functionName, java.lang.Class clazz, com.google.gson.JsonObject jsonObject)
-
-