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 | 392673f027f34c3fdd9ecdea8967d3425363e780 (patch) | |
tree | 144ef9a975979adaf92c2c1575697ea8474f0f45 /app/src/main/java/com | |
parent | 037d6ae3da13850a809d095fd5677863d036a6d2 (diff) |
Copyable: New utility interface for deep-copyable classes
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(); +} |