FunctionType

class FunctionType<T : Any?>


Represents and passes the type information for an automated function call.

Summary

Public constructors

<T : Any?> FunctionType(name: String, parse: (String?) -> T?)

Public properties

String

: the enum name of the type

(String?) -> T?

: the deserialization function

Public companion properties

ARRAY

val ARRAY: FunctionType<List<String>>

BOOLEAN

val BOOLEAN: FunctionType<Boolean>

INTEGER

val INTEGER: FunctionType<Int>

LONG

val LONG: FunctionType<Long>

NUMBER

val NUMBER: FunctionType<Double>

OBJECT

val OBJECT: FunctionType<JSONObject>

STRING

val STRING: FunctionType<String>

Public constructors

FunctionType

<T : Any?> FunctionType(name: String, parse: (String?) -> T?)

Public properties

name

val name: String

: the enum name of the type

parse

val parse: (String?) -> T?

: the deserialization function