From: David ‘Bombe’ Roden Date: Fri, 16 Sep 2011 15:50:20 +0000 (+0200) Subject: Add method to return the first WoT identity. X-Git-Tag: 0.0.6^2~2 X-Git-Url: https://git.pterodactylus.net/?p=WoTNS.git;a=commitdiff_plain;h=4e1244ef54d89818d48af3b1070d799c89734f15;ds=sidebyside Add method to return the first WoT identity. --- diff --git a/src/main/java/net/pterodactylus/wotns/main/Resolver.java b/src/main/java/net/pterodactylus/wotns/main/Resolver.java index 12eff7e..4e53528 100644 --- a/src/main/java/net/pterodactylus/wotns/main/Resolver.java +++ b/src/main/java/net/pterodactylus/wotns/main/Resolver.java @@ -133,4 +133,12 @@ public class Resolver { return matchingIdentities.get(0); } + private OwnIdentity getFirstOwnIdentity() { + Set ownIdentities = identityManager.getAllOwnIdentities(); + if (!ownIdentities.isEmpty()) { + return ownIdentities.iterator().next(); + } + return null; + } + }