1 |
package skrueger.geotools; |
package skrueger.geotools; |
2 |
|
|
3 |
|
|
|
|
|
4 |
public interface Copyable<T> { |
public interface Copyable<T> { |
5 |
|
|
6 |
/** |
/** |
7 |
* Deep copy this obejct to the target object. The target object has to be of the same |
* Deep copy this object to the target object. The target object has to be of the same |
8 |
* @param t |
* @param t |
9 |
*/ |
*/ |
10 |
T copyTo (T t); |
public T copyTo (T t); |
11 |
|
|
12 |
/** |
/** |
13 |
* Creates a new instance of T and copies all values. |
* Creates a new instance of T and copies all values. |
14 |
* @param t |
* @param t |
15 |
*/ |
*/ |
16 |
T copy(); |
public T copy(); |
|
|
|
17 |
} |
} |