Class Strings
- java.lang.Object
-
- com.moilioncircle.redis.replicator.util.Strings
-
public class Strings extends Object
- Since:
- 2.6.0
- Author:
- Leon Chen
-
-
Constructor Summary
Constructors Constructor Description Strings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbytesToHex(byte[] bytes)static CharBufferdecode(ByteBuffer buffer)static CharBufferdecode(Charset charset, ByteBuffer buffer)static ByteBufferencode(CharBuffer buffer)static ByteBufferencode(Charset charset, CharBuffer buffer)static Stringformat(Object[] command)static booleanisEquals(String o1, String o2)static booleanisEquals(String o1, String o2, boolean strict)static Stringlappend(int src, int length, char padding)static Stringlappend(long src, int length, char padding)static Stringlappend(String s, int length, char padding)static Stringmask(String password)static StringtoString(Object object)static StringtoString(Object object, Charset charset)
-
-
-
Method Detail
-
lappend
public static final String lappend(int src, int length, char padding)
-
lappend
public static final String lappend(long src, int length, char padding)
-
encode
public static ByteBuffer encode(CharBuffer buffer)
-
decode
public static CharBuffer decode(ByteBuffer buffer)
-
encode
public static ByteBuffer encode(Charset charset, CharBuffer buffer)
-
decode
public static CharBuffer decode(Charset charset, ByteBuffer buffer)
-
bytesToHex
public static String bytesToHex(byte[] bytes)
-
-