type

XStr

@Js
const class XStr : Obj

XStr is an extended string which is a type name and value encoded as a string. It is used as a generic value when an XStr is decoded without any predefind Fantom type.

constructors

make

Construct for type name and string value

fields

type

Type name

val

String value

methods

decode

Decode into its appropiate Fantom type or fallback to generic XStr

equals

Equality is base on type and val

hash

Hash is composed of type and val

toStr

Slot Details

decode

static Obj decode(Str type, Str val)

Decode into its appropiate Fantom type or fallback to generic XStr

equals

virtual override Bool equals(Obj? obj)

Equality is base on type and val

hash

virtual override Int hash()

Hash is composed of type and val

make

new make(Str type, Str val)

Construct for type name and string value

toStr

virtual override Str toStr()

type

const Str type

Type name

val

const Str val

String value