From 1f783aa9e2f7cad0ab22c49c472211f7136dbb32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 19 Apr 2012 15:04:13 +0200 Subject: [PATCH] Add method to return a single artist. --- src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index a1888de..e6d58bf 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -153,6 +153,10 @@ public class DataManager { private final List artists = new ArrayList(); private Artist artist; + public Artist get() { + return artists.isEmpty() ? null : artists.get(0); + } + public List all() { return artists; } -- 2.7.4