@param expected the char that we expect @param s the string to check @return true if the provided string has only one char and this matches the expectation
(final char expected, final CharSequence s)
| 152 | * @return true if the provided string has only one char and this matches the expectation |
| 153 | */ |
| 154 | public static boolean equalsChar(final char expected, final CharSequence s) { |
| 155 | return s != null && s.length() == 1 && expected == s.charAt(0); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Tests if a CharSequence starts with a specified prefix. |