com.limegroup.gnutella.gui.tables
Class UploadCountHolder
java.lang.Object
com.limegroup.gnutella.gui.tables.UploadCountHolder
- All Implemented Interfaces:
- java.lang.Comparable
- public final class UploadCountHolder
- extends java.lang.Object
- implements java.lang.Comparable
Wrapper class that acts as a comparable for the attempted / completed upload info.
Constructor Summary |
UploadCountHolder(int attempted,
int completed)
The constructor sets attempted / completed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UploadCountHolder
public UploadCountHolder(int attempted,
int completed)
- The constructor sets attempted / completed
compareTo
public int compareTo(java.lang.Object o)
- This one is larger if it has had more completed downloads.
If the two have completed the same, it's larger if it
had more attempted downloads
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Returns:
- the formatted string
getAttempted
public int getAttempted()
getCompleted
public int getCompleted()