public interface Cloner
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClone(Object source)
Determine whether or not the current cloner can clone the given object.
|
Object |
clone(Object source)
Perform the clone.
|
boolean canClone(Object source)
source - - the object that is being considered.Object clone(Object source)
This method should never be called unless a corresponding canClone(Object) returns TRUE.
source - - the value to clone.IllegalArgumentException - If this cloner cannot perform the clone.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.