Package com.owenfeehan.pathpatternfinder
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 Summary
Constructors Constructor Description CasedStringComparer(IOCase ioCase)Create for a givenIOCase. -
Method Summary
-
Constructor Details
-
CasedStringComparer
Create for a givenIOCase.- Parameters:
ioCase- whether be case-sensitive or not.
-
-
Method Details
-
match
Are two strings identical, based upon current case-sensitivity settings?- Parameters:
str1- the first stringstr2- 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 characterchar2- the second character- Returns:
- true if strings are equal, false otherwise
-