Package-level declarations

Datatypes.

Types

Link copied to clipboard
typealias BigDecimal = @Serializable(with = BigDecimalSerializer::class) org.gciatto.kt.math.BigDecimal

BigDecimal as provided by kt-math, but with a serializer applied.

Link copied to clipboard
class BigDecimalSerializer : KSerializer<BigDecimal>

Serializer for BigDecimal.

Link copied to clipboard
typealias BigInteger = @Serializable(with = BigIntegerSerializer::class) org.gciatto.kt.math.BigInteger

BigInteger as provided by kt-math, but with a serializer applied.

Link copied to clipboard
class BigIntegerSerializer : KSerializer<BigInteger>

Serializer for BigInteger.

Link copied to clipboard
@Serializable
data class File @JvmOverloads constructor(val name: String = DEFAULT_FILE_NAME, val data: ByteArray = byteArrayOf(), val type: String? = null)

Representation of a file to be used in a form.

Link copied to clipboard
@Serializable(with = Table.RowsSerializer::class)
class Table<T>

Collection where each value has a stable identifier.

Link copied to clipboard
data class TableRow<T>(val id: TableRowId, var value: T)

Row of a table containing a value and its associated identifier.

Link copied to clipboard
typealias TableRowId = Int

Identifier of a table row.

Functions

Link copied to clipboard

Function returning an empty, placeholder file.

Link copied to clipboard
fun <T> tableOf(): Table<T>

Function used to disambiguate between the two tableOf implementations, in case of 0 arguments.

fun <T> tableOf(vararg values: T): Table<T>

Creates a new table from a list of elements, using auto-generated identifiers.

fun <T> tableOf(vararg pairs: Pair<TableRowId, T>): Table<T>

Creates a new table from a list of pairs mapping an identifier to its respective element.

Link copied to clipboard

Creates a new Map from a table.

Link copied to clipboard
fun <T> Array<T>.toTable(): Table<T>

Creates a table from an Array, using auto-generated identifiers.

Creates a table from a Collection, using auto-generated identifiers.

fun <T> Iterable<T>.toTable(): Table<T>

Creates a table from an Iterable, using auto-generated identifiers.

Creates a table from a Map.

fun <T> Table<T>.toTable(): Table<T>

Creates a copy of the provided table.