Package core.components
Class SortStationByLeastOccupied
- java.lang.Object
-
- core.components.SortStationByLeastOccupied
-
-
Constructor Summary
Constructors Constructor Description SortStationByLeastOccupied()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(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:
comparein interfacejava.util.Comparator<Station>- Parameters:
o1- the station o1o2- the station o2- Returns:
- an integer that represents whether or not the o1 station is less occupied than the o2 station
-
-