aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/util/SortedKeyedList.java
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-07-25 19:30:34 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-26 05:17:43 +0200
commit6cd03a28987e1b646369c16f2d8f10e49c77828d (patch)
treed88fa5ef4fa4e53d605e6bce9d788960a80642de /app/src/main/java/com/wireguard/util/SortedKeyedList.java
parentApplication: use proper completablefuture for backend (diff)
downloadwireguard-android-6cd03a28987e1b646369c16f2d8f10e49c77828d.tar.xz
wireguard-android-6cd03a28987e1b646369c16f2d8f10e49c77828d.zip
TunnelDetailFragment now restores state correctly after process death
Diffstat (limited to 'app/src/main/java/com/wireguard/util/SortedKeyedList.java')
-rw-r--r--app/src/main/java/com/wireguard/util/SortedKeyedList.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/util/SortedKeyedList.java b/app/src/main/java/com/wireguard/util/SortedKeyedList.java
index f166cd92..a57e9739 100644
--- a/app/src/main/java/com/wireguard/util/SortedKeyedList.java
+++ b/app/src/main/java/com/wireguard/util/SortedKeyedList.java
@@ -5,6 +5,8 @@
package com.wireguard.util;
+import android.support.annotation.Nullable;
+
import java.util.Collection;
import java.util.Comparator;
import java.util.Set;
@@ -17,10 +19,12 @@ import java.util.Set;
public interface SortedKeyedList<K, E extends Keyed<? extends K>> extends KeyedList<K, E> {
Comparator<? super K> comparator();
+ @Nullable
K firstKey();
Set<K> keySet();
+ @Nullable
K lastKey();
Collection<E> values();