Class AlgoritmiMalli.LaskevaInt

java.lang.Object
  extended by AlgoritmiMalli.LaskevaInt
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
AlgoritmiMalli

public static class AlgoritmiMalli.LaskevaInt
extends java.lang.Object
implements java.util.Comparator

Luokka joka vertailee kahta kokonaislukuoliota ja palauttaa niiden järjestyksen niin, että lajittelu menee laskevaan järjestykseen.


Constructor Summary
AlgoritmiMalli.LaskevaInt()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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

AlgoritmiMalli.LaskevaInt

public AlgoritmiMalli.LaskevaInt()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator