addAny

fun addAny(any: Any?, index: Int = DEFAULT_INDEX): DataList.Builder

Unsafe shortcut to put any object into the DataList.Builder. The any will attempt to be converted to a supported type. If an unsupported type is found, then this method with throw.

Return

The current Builder instance.

Parameters

any

The object instance to convert and add

index

Optional list index to insert the item at