X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;h=3460516a58e093f8862c6ad419e003d643973da6;hb=ae0140e054f0e2cb4e0385951224a625cdf7f9a2;hp=25ddf9c1b22bd9fca4f732931093f0f6cfff0731;hpb=3d6cffe82270a1faacf1f0d39c34b11ab316e0db;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java
index 25ddf9c..3460516 100644
--- a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java
+++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java
@@ -1,5 +1,5 @@
/*
- * Sone - Identity.java - Copyright © 2010â2016 David Roden
+ * Sone - Identity.java - Copyright © 2010â2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -28,25 +28,9 @@ import com.google.common.base.Function;
* Interface for web of trust identities, defining all functions that can be
* performed on an identity. An identity is only a container for identity data
* and will not perform any updating in the WebOfTrust plugin itself.
- *
- * @author David âBombeâ Roden
*/
public interface Identity {
- public static final Function> TO_CONTEXTS = new Function>() {
- @Override
- public Set apply(Identity identity) {
- return (identity == null) ? Collections.emptySet() : identity.getContexts();
- }
- };
-
- public static final Function> TO_PROPERTIES = new Function>() {
- @Override
- public Map apply(Identity input) {
- return (input == null) ? Collections.emptyMap() : input.getProperties();
- }
- };
-
/**
* Returns the ID of the identity.
*
@@ -99,7 +83,7 @@ public interface Identity {
* @param contexts
* All contexts of the identity
*/
- public void setContexts(Collection contexts);
+ public void setContexts(Set contexts);
/**
* Removes the given context from this identity.