streams.utils
Class ByteInfoCodeComparator

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

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

Trida pro porovnani dvou objektu ByteInfo podle kodu.


Constructor Summary
ByteInfoCodeComparator()
           
 
Method Summary
 int compare(ByteInfo b1, ByteInfo b2)
          vola se pri porovnani dvou ByteInfo.
 
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

ByteInfoCodeComparator

public ByteInfoCodeComparator()
Method Detail

compare

public int compare(ByteInfo b1,
                   ByteInfo b2)
vola se pri porovnani dvou ByteInfo.

Specified by:
compare in interface java.util.Comparator<ByteInfo>
Parameters:
b1 - prvni objekt
b2 - druhy objekt
Returns:
0 kdyz jso ustejne, jinak podle velikosti kodu