public class Utils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends java.io.Serializable> |
clone(T object)
Clone an object
|
static com.google.gson.Gson |
getGson(java.lang.String datePattern)
Getting a GSON object with a date time pattern
|
public static <T extends java.io.Serializable> T clone(T object) throws java.io.IOException, java.lang.ClassNotFoundException
T
- - Class of the objectobject
- input objectjava.io.IOException
- Any exception thrown by the underlying OutputStream.java.lang.ClassNotFoundException
- Class of a serialized object cannot be found.public static com.google.gson.Gson getGson(java.lang.String datePattern)
datePattern
- - input date time pattern