net.corda.core.serialization / OpaqueBytes / <init>

<init>

OpaqueBytes(bits: ByteArray)

A simple class that wraps a byte array and makes the equals/hashCode/toString methods work as you actually expect. In an ideal JVM this would be a value type and be completely overhead free. Project Valhalla is adding such functionality to Java, but it wont arrive for a few years yet