Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • compare

        public int compare​(java.lang.String o1,
                           java.lang.String o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.String>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Comparator<java.lang.String>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object