StringUtils.equals¶
Signature: StringUtils.equals(firstString, secondString)
Returns: Boolean result - true if the Strings are equal, case sensitive, or both null
Compares two Strings, returning true if they are equal. nulls are handled without exceptions. Two null references are considered to be equal. The comparison is case sensitive.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| String | firstString | the first String, may be null | |
| String | secondString | the second String, may be null |