- Index
- »
- fan.haystack
- »
- XStr
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.
Construct for type name and string value
String value
Type name
Equality is base on type and val
Decode into its appropiate Fantom type or fallback to generic XStr
Hash is composed of type and val
static Obj decode(Str type, Str val)
Decode into its appropiate Fantom type or fallback to generic XStr
virtual Bool equals(Obj? obj)
Equality is base on type and val
virtual Int hash()
Hash is composed of type and val
new make(Str type, Str val)
Construct for type name and string value
virtual Str toStr()
const Str : type
Type name
const Str : val
String value