Package com.linkedin.venice.utils
Class ByteArray
java.lang.Object
com.linkedin.venice.utils.ByteArray
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ByteArray
public ByteArray(byte... underlying)
-
-
Method Details
-
get
public byte[] get() -
hashCode
public int hashCode() -
equals
-
toString
-
toHexStrings
Translate the each ByteArray in an iterable into a hexidecimal string- Parameters:
arrays
- The array of bytes to translate- Returns:
- An iterable of converted strings
-
length
public int length() -
startsWith
public boolean startsWith(byte[] prefixBytes)
-