From c3b42b85cc911b5fb3ea73118b6d64d7681b7bb2 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 31 Jul 2017 21:11:33 -0500 Subject: Copyable: New utility interface for deep-copyable classes Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/config/Copyable.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/src/main/java/com/wireguard/config/Copyable.java (limited to 'app/src/main/java/com') 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 copy(); +} -- cgit v1.2.3