Package io.atomix.utils.misc
Class StringUtils
java.lang.Object
io.atomix.utils.misc.StringUtils
Collection of various helper methods to manipulate strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringprintShortBuffer(ByteBuffer buffer) Small utility to print diagnostic information aboutByteBufferstatic String[]Splits the input string with the given regex and filters empty strings.
-
Method Details
-
split
Splits the input string with the given regex and filters empty strings.- Parameters:
input- the string to split.- Returns:
- the array of strings computed by splitting this string
-
printShortBuffer
Small utility to print diagnostic information aboutByteBuffer- Parameters:
buffer- the buffer to print-out- Returns:
- diagnostic information about the buffer
-