Class StringIgnoreCaseKeyComparator

java.lang.Object
org.glassfish.jersey.internal.util.collection.StringIgnoreCaseKeyComparator
All Implemented Interfaces:
Serializable, KeyComparator<String>

public class StringIgnoreCaseKeyComparator extends Object implements KeyComparator<String>
Case insensitive String key comparator.
Author:
Paul Sandoz, Michal Gajdos
See Also:
  • Field Details

  • Constructor Details

    • StringIgnoreCaseKeyComparator

      public StringIgnoreCaseKeyComparator()
  • Method Details

    • hash

      public int hash(String k)
      Description copied from interface: KeyComparator
      Get the hash code of a key.
      Specified by:
      hash in interface KeyComparator<String>
      Parameters:
      k - the key.
      Returns:
      the hash code of the key.
    • equals

      public boolean equals(String x, String y)
      Description copied from interface: KeyComparator
      Compare two keys for equality.
      Specified by:
      equals in interface KeyComparator<String>
      Parameters:
      x - the first key
      y - the second key
      Returns:
      true if the keys are equal.