Package org.apache.cassandra.utils
Class Hex
java.lang.Object
org.apache.cassandra.utils.Hex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToHex(byte... bytes) static StringbytesToHex(byte[] bytes, int offset, int length) static <T> Constructor<T>getProtectedConstructor(Class<T> klass, Class<?>... paramTypes) Used to get access to protected/private constructor of the specified classstatic byte[]hexToBytes(String str) static longstatic StringwrapCharArray(char[] c) Create a String from a char array with zero-copy (if available), using reflection to access a package-protected constructor of String.
-
Constructor Details
-
Hex
public Hex()
-
-
Method Details
-
hexToBytes
-
bytesToHex
-
bytesToHex
-
parseLong
-
wrapCharArray
Create a String from a char array with zero-copy (if available), using reflection to access a package-protected constructor of String. -
getProtectedConstructor
Used to get access to protected/private constructor of the specified class- Parameters:
klass- - name of the classparamTypes- - types of the constructor parameters- Returns:
- Constructor if successful, null if the constructor cannot be accessed
-