public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgumentsNumberEquals(List<Slice> args,
int expect) |
static void |
checkArgumentsNumberFactor(List<Slice> args,
int factor) |
static void |
checkArgumentsNumberGreater(List<Slice> args,
int expect) |
static void |
closeQuietly(Closeable closeable) |
static byte |
convertToByte(String value) |
static int |
convertToInteger(String value) |
static long |
convertToLong(String value) |
static int |
convertToNonNegativeInteger(String value) |
static <T> T |
deserializeObject(Slice data) |
static Slice |
serializeObject(Object o) |
public static void closeQuietly(Closeable closeable)
public static void checkArgumentsNumberEquals(List<Slice> args, int expect) throws WrongNumberOfArgumentsException
WrongNumberOfArgumentsExceptionpublic static void checkArgumentsNumberGreater(List<Slice> args, int expect) throws WrongNumberOfArgumentsException
WrongNumberOfArgumentsExceptionpublic static void checkArgumentsNumberFactor(List<Slice> args, int factor) throws WrongNumberOfArgumentsException
WrongNumberOfArgumentsExceptionpublic static <T> T deserializeObject(Slice data)
public static long convertToLong(String value)
public static byte convertToByte(String value)
public static int convertToNonNegativeInteger(String value)
public static int convertToInteger(String value)
Copyright © 2018. All rights reserved.