Package jmri.jmrix.roco.z21
Class Z21SystemNameComparator
- java.lang.Object
-
- jmri.jmrix.roco.z21.Z21SystemNameComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.String>
public class Z21SystemNameComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>
implements a comparator for Z21 CAN bus system names, which include a hex string for the node address.
-
-
Constructor Summary
Constructors Constructor Description Z21SystemNameComparator(java.lang.String prefix, char typeLetter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String o1, java.lang.String o2)
boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
Constructor Detail
-
Z21SystemNameComparator
Z21SystemNameComparator(java.lang.String prefix, char typeLetter)
-
-
Method Detail
-
compare
public int compare(java.lang.String o1, java.lang.String o2)
- Specified by:
compare
in interfacejava.util.Comparator<java.lang.String>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Comparator<java.lang.String>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-