From 2cdc70f7d90f97d21555127c84a8f9b953bcbb0f 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:07 +0200 Subject: [PATCH] Move method to appropriate place. --- .../java/net/pterodactylus/demoscenemusic/data/DataManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index 23159df..a1888de 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -121,6 +121,10 @@ public class DataManager { private final List loadedTracks = new ArrayList(); private Track track; + public Track get() { + return loadedTracks.isEmpty() ? null : loadedTracks.get(0); + } + public List all() { return loadedTracks; } @@ -142,10 +146,6 @@ public class DataManager { track.styles().add(style); } - public Track get() { - return loadedTracks.isEmpty() ? null : loadedTracks.get(0); - } - } private class ArtistLoader implements ResultProcessor { -- 2.7.4