Package com.jitcaforwin.extended.collections

Examples of com.jitcaforwin.extended.collections.TrackCollection


      IJitcaITunesController iTunes = new JitcaiTunesController(true);
      UserLibrary library = iTunes.getLibrary();
   
      Artist michaelJackson = library.getArtist("Michael Jackson");
      michaelJackson.loadAllTracks();
      TrackCollection tracks = michaelJackson.getTracks();
     
     
      System.out.println("The following tracks of \"" + michaelJackson.getName() + "\" are in your library:");
      for (Track track : tracks){
        System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
View Full Code Here


  public static void main(String args[]){
    try {
      System.out.println("Note: The following operations could take a while for large libraries.");
      IJitcaITunesController iTunes = new JitcaiTunesController(true);
     
      TrackCollection tracksLastPlayed = iTunes.getTrackController().lastPlayed(10);
     
      System.out.println("The following tracks were played recently:");
      for (Track track : tracksLastPlayed){
        System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
      }
     
      final long millisecondsOfDay = 24 * 60 * 60 * 1000;
      TrackCollection tracksPlayedToday = iTunes.getTrackController().lastPlayed(new JitcaDate(new Date(System.currentTimeMillis()-millisecondsOfDay)));
     
      System.out.println("The following tracks were played during the last 24 hours:");
      for (Track track : tracksPlayedToday){
        System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
      }
View Full Code Here

    IJitcaITunesController iTunes = new JitcaiTunesController(true);
    UserLibrary library = iTunes.getLibrary();

    Artist michaelJackson = library.getArtist("Michael Jackson");
    michaelJackson.loadAllTracks();
    TrackCollection tracks = michaelJackson.getTracks();

    System.out.println("The following tracks of \"" + michaelJackson.getName() + "\" are in your library:");
    for (Track track : tracks) {
      System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
    }
View Full Code Here

 
  public static void main(String args[]){
    System.out.println("Note: The following operations could take a while for large libraries.");
    IJitcaITunesController iTunes = new JitcaiTunesController(true);
   
    TrackCollection tracksLastPlayed = iTunes.getTrackController().lastPlayed(10);
   
    System.out.println("The following tracks were played recently:");
    for (Track track : tracksLastPlayed){
      System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
    }
   
    final long millisecondsOfDay = 24 * 60 * 60 * 1000;
    TrackCollection tracksPlayedToday = iTunes.getTrackController().lastPlayed(new JitcaDate(new Date(System.currentTimeMillis()-millisecondsOfDay)));
   
    System.out.println("The following tracks were played during the last 24 hours:");
    for (Track track : tracksPlayedToday){
      System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
    }
View Full Code Here

  private boolean loadedFromITunes;
 
  public GenreImpl(String name, Source source){
    this.source = source;
    this.name = name;
    tracks = new TrackCollection(this.source, TrackCollection.DUPLICATES_NOT_ALLOWED);
    this.loadedFromITunes = false; // All tracks of a genre are loaded from iTunes, when they are needed.
  }
View Full Code Here

  public AlbumImpl(String title, Artist artist, Source source) {
    super(source.isLazy());
    this.source = source;
    this.title = title;
    this.artist = artist;
    this.tracks = new TrackCollection(this.source.isLazy(), this.source, TrackCollection.DUPLICATES_NOT_ALLOWED);
    if (!this.lazy){
      this.loadAllTracks();
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.collections.TrackCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.