AnyInt

@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
@JvmName(name = "create")
fun AnyInt(value: Int): AnyInt

Creates an instance of AnyInt with the specified value.


Calling from Kotlin

Here's an example of calling this function from Kotlin code:

val number = AnyInt(1)
assertEquals(expected = "1", actual = "$number")

Calling from Java

The Java function generated from this one is AnyIntFactory.create. Here's an example of calling it from Java code:

final AnyInt number = AnyIntFactory.create(1);
final String actual = number.toString();
final String expected = "1";
Assertions.assertEquals(expected, actual);