From 7d48bef70a56d4370856eedab619b1f83ac3d0d0 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 9 Mar 2020 19:06:11 +0530 Subject: Rename app module to ui Signed-off-by: Harsh Shandilya --- app/src/main/java/com/wireguard/util/Keyed.java | 14 ---------- .../main/java/com/wireguard/util/KeyedList.java | 32 ---------------------- .../java/com/wireguard/util/SortedKeyedList.java | 31 --------------------- 3 files changed, 77 deletions(-) delete mode 100644 app/src/main/java/com/wireguard/util/Keyed.java delete mode 100644 app/src/main/java/com/wireguard/util/KeyedList.java delete mode 100644 app/src/main/java/com/wireguard/util/SortedKeyedList.java (limited to 'app/src/main/java/com/wireguard/util') diff --git a/app/src/main/java/com/wireguard/util/Keyed.java b/app/src/main/java/com/wireguard/util/Keyed.java deleted file mode 100644 index f31a43a2..00000000 --- a/app/src/main/java/com/wireguard/util/Keyed.java +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright © 2017-2019 WireGuard LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.wireguard.util; - -/** - * Interface for objects that have a identifying key of the given type. - */ - -public interface Keyed { - K getKey(); -} diff --git a/app/src/main/java/com/wireguard/util/KeyedList.java b/app/src/main/java/com/wireguard/util/KeyedList.java deleted file mode 100644 index c116c1da..00000000 --- a/app/src/main/java/com/wireguard/util/KeyedList.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2017-2019 WireGuard LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.wireguard.util; - -import androidx.annotation.Nullable; - -import java.util.Collection; -import java.util.List; - -/** - * A list containing elements that can be looked up by key. A {@code KeyedList} cannot contain - * {@code null} elements. - */ - -public interface KeyedList> extends List { - boolean containsAllKeys(Collection keys); - - boolean containsKey(K key); - - @Nullable - E get(K key); - - @Nullable - E getLast(K key); - - int indexOfKey(K key); - - int lastIndexOfKey(K key); -} diff --git a/app/src/main/java/com/wireguard/util/SortedKeyedList.java b/app/src/main/java/com/wireguard/util/SortedKeyedList.java deleted file mode 100644 index b144fc85..00000000 --- a/app/src/main/java/com/wireguard/util/SortedKeyedList.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright © 2017-2019 WireGuard LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.wireguard.util; - -import androidx.annotation.Nullable; - -import java.util.Collection; -import java.util.Comparator; -import java.util.Set; - -/** - * A keyed list where all elements are sorted by the comparator returned by {@code comparator()} - * applied to their keys. - */ - -public interface SortedKeyedList> extends KeyedList { - Comparator comparator(); - - @Nullable - K firstKey(); - - Set keySet(); - - @Nullable - K lastKey(); - - Collection values(); -} -- cgit v1.2.3