Compares several strings for equality, ignoring the case. @param string first string (can be null) @param strings strings to be compared (can contain null references) @return true if test is successful
(final String string, final String... strings)
| 119 | * @return {@code true} if test is successful |
| 120 | */ |
| 121 | public static boolean eqic(final String string, final String... strings) { |
| 122 | for(final String str : strings) { |
| 123 | if(string == null ? str == null : string.equalsIgnoreCase(str)) return true; |
| 124 | } |
| 125 | return false; |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Splits a string around matches of the given separator. |