package com.heaven7.java.data.mediator;

/**
 * indicate the target can be copy.
 * @param <T> the data type
 * @author heaven7
 */
public interface ICopyable<T> {

	/**
	 * copy the data.
	 * @return the copied data
	 */
	T copy();

	/**
	 * copy the data out to the target.
	 * @param out the out object.
	 */
	void copyTo(T out);
}

@@ -316,16 +316,41 @@
  object.
+ it should be the type T.
 %0D%0A%09 */%0D%0A
@@ -362,17 +362,22 @@
  copyTo(
-T
+Object
  out);%0D%0A

add method for copy