Class AlgoritmiMalliGen.LaskevaInt
java.lang.Object
AlgoritmiMalliGen.LaskevaInt
- All Implemented Interfaces:
- Comparator<Integer>
- Enclosing class:
- AlgoritmiMalliGen
public static class AlgoritmiMalliGen.LaskevaInt
- extends Object
- implements Comparator<Integer>
Luokka joka vertailee kahta kokonaislukuoliota ja
palauttaa niiden järjestyksen niin, että lajittelu menee
laskevaan järjestykseen.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlgoritmiMalliGen.LaskevaInt
public AlgoritmiMalliGen.LaskevaInt()
compare
public int compare(Integer o1,
Integer o2)
- Specified by:
compare
in interface Comparator<Integer>