Package jmri.util
Class LocoAddressComparator
- java.lang.Object
-
- jmri.util.LocoAddressComparator
-
- All Implemented Interfaces:
java.util.Comparator<LocoAddress>
public class LocoAddressComparator extends java.lang.Object implements java.util.Comparator<LocoAddress>
Comparator for LocoAddress objects.Compares objects based on protocol and then address.
-
-
Constructor Summary
Constructors Constructor Description LocoAddressComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(LocoAddress l1, LocoAddress l2)
-
-
-
Constructor Detail
-
LocoAddressComparator
public LocoAddressComparator()
-
-
Method Detail
-
compare
public int compare(LocoAddress l1, LocoAddress l2)
- Specified by:
compare
in interfacejava.util.Comparator<LocoAddress>
-
-