public class CaseInsensitiveComparer
extends java.lang.Object
implements com.mindfusion.common.EqualityComparer<java.lang.String>
| Constructor and Description |
|---|
CaseInsensitiveComparer()
Initializes a new instance of the
CaseInsensitiveComparer class using an invariant culture. |
CaseInsensitiveComparer(java.util.Locale locale)
Initializes a new instance of the
CaseInsensitiveComparer class using the specified culture. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.String x,
java.lang.String y)
Determines whether the specified objects are equal.
|
int |
hashCode(java.lang.String obj)
Returns a hash code for the specified object.
|
public CaseInsensitiveComparer()
CaseInsensitiveComparer class using an invariant culture.public CaseInsensitiveComparer(java.util.Locale locale)
CaseInsensitiveComparer class using the specified culture.public boolean equals(java.lang.String x,
java.lang.String y)
com.mindfusion.common.EqualityComparerequals in interface com.mindfusion.common.EqualityComparer<java.lang.String>x - The first object of type T to compare.y - The second object of type T to compare.true if the specified objects are equal; otherwise, false.public int hashCode(java.lang.String obj)
com.mindfusion.common.EqualityComparerhashCode in interface com.mindfusion.common.EqualityComparer<java.lang.String>obj - The Object for which a hash code is to be returned.