From 4e1244ef54d89818d48af3b1070d799c89734f15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 16 Sep 2011 17:50:20 +0200 Subject: [PATCH] Add method to return the first WoT identity. --- src/main/java/net/pterodactylus/wotns/main/Resolver.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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; + } + } -- 2.7.4