Code example for CharMatcher

Methods: matchesAllOfnegate

0
                .putArgument("actual", input.length())
                .putArgument("expected", length));
            return; 
        } 
 
        if (HEX_CHARS.matchesAllOf(input))
            return; 
 
        final int index = HEX_CHARS.negate().indexIn(input);
 
        report.error(newMsg(data, bundle, "err.format.hexString.illegalChar")
            .putArgument("character", Character.toString(input.charAt(index)))
            .putArgument("index", index));
    } 
}