Copyable: New utility interface for deep-copyable classes

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-07-31 21:11:33 -05:00
parent 465a969a70
commit c3b42b85cc

View File

@ -0,0 +1,9 @@
package com.wireguard.config;
/**
* Interface for classes that can perform a deep copy of their objects.
*/
public interface Copyable<T> {
T copy();
}