Package io.atomix.utils.misc
Class StringUtils
- java.lang.Object
-
- io.atomix.utils.misc.StringUtils
-
public final class StringUtils extends Object
Collection of various helper methods to manipulate strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringprintShortBuffer(ByteBuffer buffer)Small utility to print diagnostic information aboutByteBufferstatic String[]split(String input, String regex)Splits the input string with the given regex and filters empty strings.
-
-
-
Method Detail
-
split
public static String[] split(String input, String regex)
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
public static String printShortBuffer(ByteBuffer buffer)
Small utility to print diagnostic information aboutByteBuffer- Parameters:
buffer- the buffer to print-out- Returns:
- diagnostic information about the buffer
-
-