jBittorrentAPI
Class ULRateComparator

java.lang.Object
  extended by jBittorrentAPI.ULRateComparator
All Implemented Interfaces:
java.util.Comparator

public class ULRateComparator
extends java.lang.Object
implements java.util.Comparator

Compares 2 peers upload rate


Constructor Summary
ULRateComparator()
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ULRateComparator

public ULRateComparator()
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Compares its two arguments for order.

Specified by:
compare in interface java.util.Comparator
Parameters:
a - the first object to be compared.
b - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.