streams.utils
Class ByteInfoCountComparator

java.lang.Object
  extended by streams.utils.ByteInfoCountComparator
All Implemented Interfaces:
java.util.Comparator<ByteInfo>

public class ByteInfoCountComparator
extends java.lang.Object
implements java.util.Comparator<ByteInfo>

Trida pro porovnavani ByteInfo podle pocitadla.


Constructor Summary
ByteInfoCountComparator()
           
 
Method Summary
 int compare(ByteInfo b1, ByteInfo b2)
          Porovna dve byteInfo podle pocitadla.
 
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

ByteInfoCountComparator

public ByteInfoCountComparator()
Method Detail

compare

public int compare(ByteInfo b1,
                   ByteInfo b2)
Porovna dve byteInfo podle pocitadla.

Specified by:
compare in interface java.util.Comparator<ByteInfo>
Parameters:
b1 - prvni ByteInfo
b2 - druhe ByteInfo
Returns:
0 pro stejna, jinak pro sestupne razeni.