Package org.apache.james.mime4j.util
Class LangUtils
java.lang.Object
org.apache.james.mime4j.util.LangUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if two objects are equal.static boolean
equalsIgnoreCase
(String s1, String s2) Check if two strings are equal, ignoring case considerations.static int
hashCode
(int seed, boolean b) static int
hashCode
(int seed, int hashcode) static int
-
Field Details
-
HASH_SEED
public static final int HASH_SEED- See Also:
-
HASH_OFFSET
public static final int HASH_OFFSET- See Also:
-
-
Constructor Details
-
LangUtils
private LangUtils()Disabled default constructor.
-
-
Method Details
-
hashCode
public static int hashCode(int seed, int hashcode) -
hashCode
public static int hashCode(int seed, boolean b) -
hashCode
-
equals
Check if two objects are equal.- Parameters:
obj1
- first object to compare, may benull
obj2
- second object to compare, may benull
- Returns:
true
if the objects are equal or both null
-
equalsIgnoreCase
Check if two strings are equal, ignoring case considerations.- Parameters:
s1
- first string to compare, may benull
s2
- second string to compare, may benull
- Returns:
true
if the objects are equal or both null
-