public class CloneHelper extends Object
Constructor and Description |
---|
CloneHelper() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
clone(T object)
note: clone works only with special classes validatable through
ModelTest .
|
static <T> T |
clone(T object,
List originals,
List copies) |
static void |
deepCopy(Object from,
Object to)
note: deepCopy works only with special classes validatable through
ModelTest .
|
static <T> T |
newInstance(Class<T> clazz) |
public static <T> T clone(T object)
T
- Type of clazz itself (caller of this method doesn't need to care about this)object
- the original objectpublic static void deepCopy(Object from, Object to)
from
- the original objectto
- an empty object to be filledpublic static <T> T newInstance(Class<T> clazz)
Copyright © 2019. All rights reserved.