diff options
author | Samuel Holland <samuel@sholland.org> | 2018-06-19 00:47:48 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-06-19 21:59:44 -0500 |
commit | 4acee49d4b0da6273cd9ffef1573185f955b5774 (patch) | |
tree | 3f322d5255209c3d14d50eec30f17e60c3e46101 /app/src/main/java/com/wireguard/util/Keyed.java | |
parent | crypto: Slightly Java-ify the Curve25519 implementation (diff) | |
download | wireguard-android-4acee49d4b0da6273cd9ffef1573185f955b5774.tar.xz wireguard-android-4acee49d4b0da6273cd9ffef1573185f955b5774.zip |
util: Extract non-Android utility interfaces
As part of a refactoring that will likely introduce more custom
collection classes, move the non-Android-specific parts outside the
com.wireguard.android package.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/util/Keyed.java')
-rw-r--r-- | app/src/main/java/com/wireguard/util/Keyed.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/util/Keyed.java b/app/src/main/java/com/wireguard/util/Keyed.java new file mode 100644 index 00000000..f0b32b6d --- /dev/null +++ b/app/src/main/java/com/wireguard/util/Keyed.java @@ -0,0 +1,14 @@ +/* + * Copyright © 2018 Samuel Holland <samuel@sholland.org> + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +package com.wireguard.util; + +/** + * Interface for objects that have a identifying key of the given type. + */ + +public interface Keyed<K> { + K getKey(); +} |