sk.baka.ambient.collection
Class Statistics

java.lang.Object
  extended by sk.baka.ambient.collection.Statistics
All Implemented Interfaces:
Serializable

public final class Statistics
extends Object
implements Serializable

Statistics class.

Author:
Martin Vysny
See Also:
Serialized Form

Field Summary
 int albums
          Albums count.
 int artists
          Artists count.
 long fileSize
          Overall file size.
 int length
          Overall length in seconds.
 int tracks
          Number of tracks.
 
Constructor Summary
Statistics()
           
 
Method Summary
 void add(Statistics other)
          Merge this object with another statistics object.
 void copyFrom(Statistics other)
          Copies statistics from another statistics object.
 int getAverageLength()
          Computes average track length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tracks

public int tracks
Number of tracks.


length

public int length
Overall length in seconds.


fileSize

public long fileSize
Overall file size.


albums

public int albums
Albums count.


artists

public int artists
Artists count.

Constructor Detail

Statistics

public Statistics()
Method Detail

add

public void add(Statistics other)
Merge this object with another statistics object.

Parameters:
other - the other statistics.

copyFrom

public void copyFrom(Statistics other)
Copies statistics from another statistics object.

Parameters:
other - the other statistics.

getAverageLength

public int getAverageLength()
Computes average track length.

Returns:
average track length in seconds.


Copyright © 2007-2008. All Rights Reserved.