2023-04-04 22:36:01 +00:00
|
|
|
package dev.toad.msg;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
public class MessageOptionValueOwned implements MessageOptionValue {
|
2023-04-04 22:37:28 +00:00
|
|
|
|
2023-04-04 22:36:01 +00:00
|
|
|
public final byte[] bytes;
|
|
|
|
|
|
|
|
public MessageOptionValueOwned(MessageOptionValueRef ref) {
|
|
|
|
this.bytes = ref.asBytes().clone();
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] asBytes() {
|
|
|
|
return this.bytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String asString() {
|
|
|
|
return new String(this.asBytes());
|
|
|
|
}
|
|
|
|
}
|