fabric.rw
Type members
Classlikes
ClassRW provides convenience functionality to simplify class mapping with ReaderWriter
ClassRW provides convenience functionality to simplify class mapping with ReaderWriter
Reader provides a simple T => Value wrapper functionality
Reader provides a simple T => Value wrapper functionality
- Companion:
- object
ReaderWriter provides a single class representation of a Reader and Writer for the same type
ReaderWriter provides a single class representation of a Reader and Writer for the same type
- Companion:
- object
Writable provides a simple Value => T wrapper functionality
Writable provides a simple Value => T wrapper functionality
- Companion:
- object
Types
Value members
Concrete methods
Used by polyRW by default to getType using the class name with the first character lowercase
Used by polyRW by default to getType using the class name with the first character lowercase
Convenience functionality for working with enumerations
Convenience functionality for working with enumerations
- Value parameters:
- fieldName
the field name to refer to in the Value
- mapping
a mapping of key/value pairs representing the String in fieldName to the representative value
Convenience functionality for working with polymorphic types
Convenience functionality for working with polymorphic types
- Value parameters:
- fieldName
the field name stored in the value (defaults to "type")
- getType
a function to determine the field value from an instance (defaults to the class name with the first character lowercase - defaultGetType)
- matcher
a matcher for field values to get the representative ReaderWriter for that type