@Immutable public final class CloneHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> DATATYPE |
getClonedValue(DATATYPE aObject)
Get a clone (= deep copy) of the passed value.
|
static <DATATYPE extends ICloneable<DATATYPE>> |
getCloneIfNotNull(DATATYPE aObject)
Get a clone (= deep copy) of the passed value for all objects implementing
ICloneable. |
@Nullable public static <DATATYPE> DATATYPE getClonedValue(@Nullable DATATYPE aObject)
Immutable annotation.ICloneable it is invoked.Cloneable it is invoked.null is returned.DATATYPE - The source and return typeaObject - The object to be copied.null if the passed value is null or if no
cloning could be performed.@Nullable public static <DATATYPE extends ICloneable<DATATYPE>> DATATYPE getCloneIfNotNull(@Nullable DATATYPE aObject)
ICloneable.DATATYPE - The data type to be clonedaObject - The object to be copied. May be null.null if the passed value is null or a
clone of the object.Copyright © 2014–2016 Philip Helger. All rights reserved.