Documentation of 'info.monitorenter.util.collections.ComparatorToString' Java class
ComparatorToString
info.monitorenter.util.collections

Class ComparatorToString<T>

  • Type Parameters:
    T - the type to compare by Object.toString().
    All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<T>


    public final class ComparatorToString<T>
    extends java.lang.Object
    implements java.util.Comparator<T>, java.io.Serializable
    A Comparator that compares the given Objects by their Object.toString() value.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(T o1, T o2)
      Compares both Objects by their Object.toString() presentation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ComparatorToString

        public ComparatorToString()
        Defcon.

    • Method Detail

      • compare

        public int compare(T o1,
                           T o2)
                    throws java.lang.IllegalArgumentException
        Compares both Objects by their Object.toString() presentation.

        Specified by:
        compare in interface java.util.Comparator<T>
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        Comparator.compare(java.lang.Object, java.lang.Object)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.