e24654ce7c
This is inspired by C#'s KeyedCollection. The sorted variant removes the need for an observable SortedMap. Signed-off-by: Samuel Holland <samuel@sholland.org>
10 lines
164 B
Java
10 lines
164 B
Java
package com.wireguard.android.util;
|
|
|
|
/**
|
|
* Interface for objects that have a identifying key of the given type.
|
|
*/
|
|
|
|
public interface Keyed<K> {
|
|
K getKey();
|
|
}
|