streams.utils
Class ByteInfoDataComparator

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

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

Trida pro porovnani dat dvou objektu ByteInfo.


Constructor Summary
ByteInfoDataComparator()
           
 
Method Summary
 int compare(ByteInfo b1, ByteInfo b2)
          Porovnani dvou ByteInfo podle dat.
 
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

ByteInfoDataComparator

public ByteInfoDataComparator()
Method Detail

compare

public int compare(ByteInfo b1,
                   ByteInfo b2)
Porovnani dvou ByteInfo podle dat.

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