TomlInteger

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class TomlInteger(val base: TomlInteger.Base)(source)

Set the representation of the corresponding Byte, Short, Int, Long property.

class ByteCode(
@TomlInteger(TomlInteger.Base.BIN)
val code: Byte
)
ByteCode(0b1101)

will produce:

code = 0b1101

Types

Link copied to clipboard

Representation of a TOML integer.

Properties

Link copied to clipboard