static ExpectedKeyOutput newInstance(final String outputText) { // If the <code>outputText</code> is one code point string, use {@link CodePoint} object. if (StringUtils.codePointCount(outputText) == 1) { return new Code(outputText.codePointAt(0)); } return new Text(outputText); }
@Override boolean equalsTo(final String text) { return StringUtils.codePointCount(text) == 1 && text.codePointAt(0) == mCode; }