Class SingletonComparator<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<T>
    Direct Known Subclasses:
    NaturalComparator, NullComparator

    abstract class SingletonComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>, java.io.Serializable
    Abstract base class for implementing a singleton comparator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object that)  
      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

        compare, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • SingletonComparator

        SingletonComparator()
    • Method Detail

      • equals

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

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