UTF8String

final class UTF8String extends AnyVal

An immutable UTF-8 string.

The contents of a UTF8String is guaranteed to be a well-formed UTF-8 string.

Note:

equals() and hashCode(), along with == and ##, are just as broken for UTF8String as for Arrays. Use the methods in the companion object instead. This is unavoidable because we cannot override equals nor hashCode in an AnyVal.

Companion:
object
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def apply(i: Int): Byte

Returns the ith UTF-8 code unit of this string.

Returns the ith UTF-8 code unit of this string.

def length: Int

Returns the length in UTF-8 code units of this string.

Returns the length in UTF-8 code units of this string.

override def toString(): String
Definition Classes
Any