Defaults

Contract that supplies default codecs for common scalar values.

Each type parameter represents the codec shape used for a particular primitive when materialising endpoint metadata or generated clients.

Parameters

TUnit

codec type used for Kotlin Unit.

TBoolean

codec type used for Boolean values.

TByte

codec type used for Byte values.

TShort

codec type used for Short values.

TInt

codec type used for Int values.

TLong

codec type used for Long values.

TFloat

codec type used for Float values.

TDouble

codec type used for Double values.

TBigInteger

codec type used for BigInteger values.

TBigDecimal

codec type used for BigDecimal values.

TString

codec type used for String values.

TUUID

codec type used for UUID values.

Inheritors

Functions

Link copied to clipboard
abstract fun bigDecimal(name: String): TBigDecimal

Builds a codec for representing a BigDecimal value.

Link copied to clipboard
abstract fun bigInteger(name: String): TBigInteger

Builds a codec for representing a BigInteger value.

Link copied to clipboard
abstract fun boolean(name: String): TBoolean

Builds a codec for representing a Boolean value.

Link copied to clipboard
abstract fun byte(name: String): TByte

Builds a codec for representing a Byte value.

Link copied to clipboard
abstract fun double(name: String): TDouble

Builds a codec for representing a Double value.

Link copied to clipboard
abstract fun float(name: String): TFloat

Builds a codec for representing a Float value.

Link copied to clipboard
abstract fun int(name: String): TInt

Builds a codec for representing an Int value.

Link copied to clipboard
abstract fun long(name: String): TLong

Builds a codec for representing a Long value.

Link copied to clipboard
abstract fun short(name: String): TShort

Builds a codec for representing a Short value.

Link copied to clipboard
abstract fun string(name: String): TString

Builds a codec for representing a String value.

Link copied to clipboard
abstract fun unit(name: String): TUnit

Builds a codec for representing a Unit value.

Link copied to clipboard
abstract fun uuid(name: String): TUUID

Builds a codec for representing a UUID value.