diff options
author | Samuel Holland <samuel@sholland.org> | 2017-07-31 21:11:33 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-07-31 21:11:33 -0500 |
commit | c3b42b85cc911b5fb3ea73118b6d64d7681b7bb2 (patch) | |
tree | 144ef9a975979adaf92c2c1575697ea8474f0f45 /app/src/main/java/com | |
parent | 465a969a700017ae0b8fd8997ec805299bc3b6b5 (diff) |
Copyable: New utility interface for deep-copyable classes
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/wireguard/config/Copyable.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/config/Copyable.java b/app/src/main/java/com/wireguard/config/Copyable.java new file mode 100644 index 00000000..bde6dd9e --- /dev/null +++ b/app/src/main/java/com/wireguard/config/Copyable.java @@ -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(); +} |