Class ByteArray

java.lang.Object
com.linkedin.venice.utils.ByteArray
All Implemented Interfaces:
Serializable

public class ByteArray extends Object implements Serializable
See Also:
  • Field Details

    • EMPTY

      public static final ByteArray EMPTY
  • Constructor Details

    • ByteArray

      public ByteArray(byte... underlying)
  • Method Details

    • get

      public byte[] get()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toHexStrings

      public static Iterable<String> toHexStrings(Iterable<ByteArray> arrays)
      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)