@ApiAudience.Public @ApiStability.Unstable public class BytesValue extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static BytesValue |
EMPTY |
protected int |
hash |
protected byte[] |
value |
Constructor and Description |
---|
BytesValue(byte[] bytes)
BytesValue} constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.io.InputStream |
getInputStream() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
int |
length() |
static BytesValue |
of(byte[] bytes)
Create
BytesValue with a raw bytes array. |
java.lang.String |
toString() |
public static final BytesValue EMPTY
protected transient int hash
protected final byte[] value
@ApiAudience.Public public BytesValue(byte[] bytes)
bytes
- value@ApiAudience.Public public static BytesValue of(byte[] bytes)
BytesValue
with a raw bytes array.bytes
- valueBytesValue
public byte[] getValue()
public int length()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.io.InputStream getInputStream()