public class ObjectUtils extends Object
| Constructor and Description |
|---|
ObjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserialize(byte[] bytes) |
static Object |
deserialize(InputStream is) |
static boolean |
parseToBoolean(String str)
Parse String into Boolean.
|
static int |
parseToInt(String str)
Parses string into Integer.
|
static byte[] |
serializeObject(Object obj) |
public static final int parseToInt(String str)
String, the method would return 0
It swallows exceptions and returns 0 in all the error cases
str - strpublic static boolean parseToBoolean(String str)
str - strpublic static byte[] serializeObject(Object obj)
public static Object deserialize(byte[] bytes)
public static Object deserialize(InputStream is)
Copyright © 2019. All rights reserved.