- java.lang.Object
-
- life.expert.common.base.Objects
-
public final class Objects extends java.lang.Objecthelper methods for working with java objects
-
-
Constructor Summary
Constructors Constructor Description Objects()
-
Method Summary
Modifier and Type Method Description static <E> EdeepCopyOfObject(E copied, java.lang.Class<?> classOfObject)helper method: deep copy with google gson
-
-
-
Method Detail
-
deepCopyOfObject
public static <E> E deepCopyOfObject(E copied, java.lang.Class<?> classOfObject)helper method: deep copy with google gsonthis.item2(MyCommon.deepCopyOf( this.item2() , List.class ) );- Type Parameters:
E- the type of copied object- Parameters:
copied- the copied objectclassOfObject- the class-literal of object. Type tag.- Returns:
- the copy
- Throws:
java.lang.NullPointerException- if argument nullable
-
-