public class CloneHelper extends Object
| Constructor and Description |
|---|
CloneHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
clone(Object toBeCloned)
Klont ein beliebiges Objekt, sofern dieses Cloneable implementiert und eine Methode public Object clone() oder
Serializable implementiert.
|
static Object |
cloneCloneable(Object toBeCloned)
Klont ein beliebiges Objekt, sofern dieses Cloneable implementiert und eine Methode public Object clone()
besitzt.
|
static Object |
cloneSerializable(Object toBeCloned)
Klont ein beliebiges Objekt, sofern dieses Serializable implementiert.
|
static boolean |
isImmutable(Class clazz)
Gibt an, ob es sich bei der übergebenen Klasse um einen unveränderliches Java Object handelt, daß
nicht geklont werden muß.
|
public static Object clone(Object toBeCloned) throws CloneNotSupportedException
toBeCloned - DOCUMENT ME!CloneNotSupportedException - wenn das Objekt nicht cloneable istpublic static Object cloneSerializable(Object toBeCloned) throws NotSerializableException
toBeCloned - DOCUMENT ME!NotSerializableException - wenn das Objekt nicht serialisierbar istpublic static Object cloneCloneable(Object toBeCloned) throws CloneNotSupportedException
toBeCloned - DOCUMENT ME!CloneNotSupportedException - wenn das Objekt nicht cloneable istpublic static boolean isImmutable(Class clazz)
clazz - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.