Class CasedStringComparer

Object
com.owenfeehan.pathpatternfinder.CasedStringComparer

public class CasedStringComparer
extends Object
Performs (maybe) case-sensitive matching based upon current setting of IOCase.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • match

      public boolean match​(String str1, String str2)
      Are two strings identical, based upon current case-sensitivity settings?
      Parameters:
      str1 - the first string
      str2 - the second string
      Returns:
      true if strings are equal, false otherwise
    • match

      public boolean match​(char char1, char char2)
      Are two characters identical, based upon current case-sensitivity settings?
      Parameters:
      char1 - the first character
      char2 - the second character
      Returns:
      true if strings are equal, false otherwise