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()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.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UTF8String
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def ++(that: UTF8String): UTF8String
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
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.- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
- Annotations
- @inline()
-
def
toString(): String
- Definition Classes
- UTF8String → Any
- Annotations
- @inline()