X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;h=3460516a58e093f8862c6ad419e003d643973da6;hp=a99aac0f8793cdd6882e2f6685846254706d857e;hb=d50730f6a330439e0e7ef97ca9329dffe72d5640;hpb=97fe04482ebb8a08e43294acde041c2975cbd8ee 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 a99aac0..3460516 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java @@ -31,20 +31,6 @@ import com.google.common.base.Function; */ 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. * @@ -97,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.