Home » openjdk-7 » net.bonzoun » cocodonkey » [javadoc | source]
abstract public class: GenericItem [javadoc | source]

Direct Known Subclasses:
    DownloadItem, SearchedItem

Nested Class Summary:
abstract public static class  GenericItem.MyComparator   
public static class  GenericItem.CompareName   
public static class  GenericItem.CompareSize   
public static class  GenericItem.CompareNbClients   
Field Summary
protected  int id     
protected  String name     
protected  int size     
protected  String hash     
protected  int nbClients     
protected  boolean complete     
 GenericItem(int id,
    String name) 
Method from net.bonzoun.cocodonkey.GenericItem Summary:
displaySize,   displayTime,   equals,   hash,   id,   name,   nbClients,   prettySize,   sameList,   setNbClients,   size
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.bonzoun.cocodonkey.GenericItem Detail:
 public static String displaySize(int n) 
 public static String displayTime(int n) 
    Tries to display an approximation of 10%, always between 5% and 20%
 public boolean equals(Object o) 
 public final String hash() 
 public final int id() 
 public final String name() 
 public final int nbClients() 
 public final String prettySize() 
 public static boolean sameList(List list1,
    List list2) 
 public  void setNbClients(int nb) 
 public final int size()