public final class ByteString extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static ByteString |
NULL_VALUE |
| Constructor and Description |
|---|
ByteString(@Nullable byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(int index) |
@Nullable byte[] |
bytes() |
@NotNull byte[] |
bytesOrElse(@NotNull byte[] other) |
@NotNull byte[] |
bytesOrEmpty() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isNotNull() |
boolean |
isNull() |
boolean |
isNullOrEmpty() |
int |
length() |
static ByteString |
of(byte[] bs) |
String |
toString() |
UByte |
uByteAt(int index) |
@Nullable UByte[] |
uBytes() |
@NotNull UByte[] |
uBytesOrElse(@NotNull UByte[] other) |
@NotNull UByte[] |
uBytesOrEmpty() |
public static final ByteString NULL_VALUE
public int length()
public boolean isNull()
public boolean isNullOrEmpty()
public boolean isNotNull()
@Nullable public @Nullable byte[] bytes()
@NotNull
public @NotNull byte[] bytesOrElse(@NotNull
@NotNull byte[] other)
@NotNull public @NotNull byte[] bytesOrEmpty()
@Nullable public @Nullable UByte[] uBytes()
@NotNull public @NotNull UByte[] uBytesOrEmpty()
public byte byteAt(int index)
public UByte uByteAt(int index)
public static ByteString of(byte[] bs)
Copyright © 2025. All rights reserved.