All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xiaoleilu.hutool.clone.CloneSupport Maven / Gradle / Ivy

package com.xiaoleilu.hutool.clone;

/**
 * 克隆支持类,提供默认的克隆方法
 * @author Looly
 *
 * @param  继承类的类型
 */
public class CloneSupport implements Cloneable{
	
	@SuppressWarnings("unchecked")
	@Override
	public T clone() {
		try {
			return (T) super.clone();
		} catch (CloneNotSupportedException e) {
			throw new CloneRuntimeException(e);
		}
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy