From: David ‘Bombe’ Roden Date: Thu, 19 Apr 2012 13:04:07 +0000 (+0200) Subject: Move method to appropriate place. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2cdc70f7d90f97d21555127c84a8f9b953bcbb0f;p=demoscenemusic.git Move method to appropriate place. --- 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 {