Package org.jampa.model.statistics

Examples of org.jampa.model.statistics.StatisticItem.incValue()


        item = _statsList.get(key);
      } else {
        item = new StatisticItem(key, StatisticItemType.Playlist, playlist, "", 0); //$NON-NLS-1$
        _statsList.put(key, item);
      }
      item.incValue();

      key = getKey(StatisticItemType.Genre, audioItem.getPropertiesList().get(AudioItem.GENRE));
      if (_statsList.containsKey(key)) {
        item = _statsList.get(key);
      } else {
View Full Code Here


        item = _statsList.get(key);
      } else {
        item = new StatisticItem(key, StatisticItemType.Genre, audioItem.getPropertiesList().get(AudioItem.GENRE), "", 0); //$NON-NLS-1$
        _statsList.put(key, item);
      }
      item.incValue();

      key = getKey(StatisticItemType.Artist, audioItem.getPropertiesList().get(AudioItem.ARTIST));
      if (_statsList.containsKey(key)) {
        item = _statsList.get(key);
      } else {
View Full Code Here

        item = _statsList.get(key);
      } else {
        item = new StatisticItem(key, StatisticItemType.Artist, audioItem.getPropertiesList().get(AudioItem.ARTIST), "", 0); //$NON-NLS-1$
        _statsList.put(key, item);
      }
      item.incValue();

      key = getKey(StatisticItemType.Album, audioItem.getPropertiesList().get(AudioItem.ALBUM));
      if (_statsList.containsKey(key)) {
        item = _statsList.get(key);
      } else {
View Full Code Here

            audioItem.getPropertiesList().get(AudioItem.ALBUM),
            audioItem.getPropertiesList().get(AudioItem.ARTIST),
            0);
        _statsList.put(key, item);
      }
      item.incValue();

      key = getKey(StatisticItemType.Title, audioItem.getFileName());
      if (_statsList.containsKey(key)) {
        item = _statsList.get(key);
      } else {
View Full Code Here

            audioItem.getPropertiesList().get(AudioItem.TITLE),
            audioItem.getPropertiesList().get(AudioItem.ARTIST) + " - " + audioItem.getPropertiesList().get(AudioItem.ALBUM),//$NON-NLS-1$           
            0);
        _statsList.put(key, item);
      }
      item.incValue();
    }
  }
 
  public void saveStatistics() {
    if (_boStatsActivated) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.