com.twitter.finagle.memcachedx.util
Prefer using isDigits(ChannelBuffer)
or DigitsPattern.matcher(input).matches()
true iff the Buf is non empty and every byte in the Buf is a digit.
Returns true if every readable byte in the ChannelBuffer is a digit, false otherwise.
Returns true if every readable byte in the ChannelBuffer is a digit, false otherwise.
See caliper test in finagle-benchmark, about 15x faster and does 0 allocations versus using ChannelBufferUtils.matches(DIGITS)