com.limegroup.gnutella.gui.tables
Class UploadCountHolder

java.lang.Object
  extended bycom.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
 
Method Summary
 int compareTo(java.lang.Object o)
          This one is larger if it has had more completed downloads.
 int getAttempted()
           
 int getCompleted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadCountHolder

public UploadCountHolder(int attempted,
                         int completed)
The constructor sets attempted / completed

Method Detail

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()