Move method to appropriate place.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 13:04:07 +0000 (15:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 13:04:07 +0000 (15:04 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java

index 23159df..a1888de 100644 (file)
@@ -121,6 +121,10 @@ public class DataManager {
                private final List<Track> loadedTracks = new ArrayList<Track>();
                private Track track;
 
+               public Track get() {
+                       return loadedTracks.isEmpty() ? null : loadedTracks.get(0);
+               }
+
                public List<Track> 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 {