1 /* 2 DeepCloneable.java 3 Creation date : 14/04/2010 4 Copyright © Benjamin Croizet (graffity2199@yahoo.fr) 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 or GNU Lesser General Public License as published by the 9 Free Software Foundation; either version 3 of the License, 10 or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received copies of the GNU General Public License 18 and GNU Lesser General Public License along with this program; 19 if not, write to the Free Software Foundation, Inc., 20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 http://www.fsf.org/licensing/licenses/gpl.html 22 http://www.gnu.org/licenses/lgpl.html 23 */ 24 25 package net.sourceforge.plantumldependency.common.clone; 26 27 /** 28 * Interface which defines object which are able to be deep cloned. 29 * 30 * @param <T> 31 * @see java.lang.Cloneable 32 * @author Benjamin Croizet (<a href="mailto:graffity2199@yahoo.fr>graffity2199@yahoo.fr</a>) 33 * @since 1.3.0 34 * @version 1.3.0 35 */ 36 public interface DeepCloneable < T > extends Cloneable { 37 38 /** 39 * Object which implements this method are able to be safely deep cloned, without any border 40 * side effects. 41 * 42 * @return a deep clone of the current object. 43 * @since 1.3.0 44 */ 45 T deepClone(); 46 }