/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }
/** * Constructs an instance from some UTF-8 bytes. * * @param bytes {@code non-null;} array of the UTF-8 bytes */ public CstString(ByteArray bytes) { if (bytes == null) { throw new NullPointerException("bytes == null"); } this.bytes = bytes; this.string = utf8BytesToString(bytes).intern(); }