Class KeyedValueComparatorType

  • All Implemented Interfaces:
    java.io.Serializable

    public final class KeyedValueComparatorType
    extends java.lang.Object
    implements java.io.Serializable
    Used to indicate the type of a KeyedValueComparator : 'by key' or 'by value'.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private KeyedValueComparatorType​(java.lang.String name)
      Private constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Returns true if this object is equal to the specified object, and false otherwise.
      int hashCode()
      Returns a hash code.
      java.lang.String toString()
      Returns a string representing the object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        The name.
    • Constructor Detail

      • KeyedValueComparatorType

        private KeyedValueComparatorType​(java.lang.String name)
        Private constructor.
        Parameters:
        name - the name.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representing the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string.
      • equals

        public boolean equals​(java.lang.Object o)
        Returns true if this object is equal to the specified object, and false otherwise.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other object.
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code.