An immutable UTF-8 string.
An immutable UTF-8 string.
The contents of a UTF8String is guaranteed to be a well-formed UTF-8
string.
- Note
equals()andhashCode(), along with==and##, are just as broken forUTF8Stringas forArrays. Use the methods in the companion object instead. This is unavoidable because we cannot overrideequalsnorhashCodein anAnyVal.- Companion
- object
class AnyVal
trait Matchable
class Any