| Constructor and Description |
|---|
ImmutableDetector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClone(java.lang.Object source)
Determine whether or not the current cloner can clone the given object.
|
java.lang.Object |
clone(java.lang.Object source)
Perform the clone.
|
static boolean |
isImmutable(java.lang.Class<?> type)
Determine if the given type is probably immutable.
|
public boolean canClone(java.lang.Object source)
Clonerpublic static boolean isImmutable(java.lang.Class<?> type)
type - - the type to check.public java.lang.Object clone(java.lang.Object source)
Cloner
This method should never be called unless a corresponding Cloner.canClone(Object) returns TRUE.