Package core.components
Class SortStationByMostUsed
- java.lang.Object
-
- core.components.SortStationByMostUsed
-
-
Constructor Summary
Constructors Constructor Description SortStationByMostUsed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Station o1, Station o2)
This method is used to compare two stations
-
-
-
Method Detail
-
compare
public int compare(Station o1, Station o2)
This method is used to compare two stations- Specified by:
compare
in interfacejava.util.Comparator<Station>
- Parameters:
o1
- the station o1o2
- the station o2- Returns:
- an integer that represents whether or not the o1 station is more used than the o2 station
-
-