예제 #1
0
 public void update(TrackDatabase trackDatabase) {
   Track[] tracks = trackDatabase.getTracks();
   for (int i = 0; i < tracks.length; i++) {
     Track track = getTrack(tracks[i]);
     if (track != null) {
       remove(track);
       add(tracks[i]);
     }
   }
 }
예제 #2
0
 public void add(TrackDatabase trackDatabase) {
   Track[] tracks = trackDatabase.getTracks();
   for (int i = 0; i < tracks.length; i++) add(tracks[i]);
 }