kotest-assertions / io.kotest.properties / TypeReference

TypeReference

abstract class TypeReference<T> : Comparable<TypeReference<T>>

Constructors

<init>

TypeReference()

Properties

type

val type: Type

Functions

compareTo

open fun compareTo(other: TypeReference<T>): Int

Extension Functions

shouldBeEqualComparingTo

Verifies that this is equal to other using compareTo

infix fun <T : Comparable<T>> T.shouldBeEqualComparingTo(other: T): Unit

Verifies that this is equal to other using compare from comparator

fun <T : Comparable<T>> T.shouldBeEqualComparingTo(other: T, comparator: Comparator<T>): Unit

shouldBeGreaterThan

Verifies that this is greater than other

infix fun <T : Comparable<T>> T.shouldBeGreaterThan(other: T): Unit

shouldBeGreaterThanOrEqualTo

Verifies that this is greater than or equal to other

infix fun <T : Comparable<T>> T.shouldBeGreaterThanOrEqualTo(other: T): Unit

shouldBeLessThan

Verifies that this is less than other

infix fun <T : Comparable<T>> T.shouldBeLessThan(other: T): Unit

shouldBeLessThanOrEqualTo

Verifies that this is less than or equalother

infix fun <T : Comparable<T>> T.shouldBeLessThanOrEqualTo(other: T): Unit

shouldNotBeEqualComparingTo

Verifies that this is NOT equal to other using compareTo

infix fun <T : Comparable<T>> T.shouldNotBeEqualComparingTo(other: T): Unit

Verifies that this is NOT equal to other using compare from comparator

fun <T : Comparable<T>> T.shouldNotBeEqualComparingTo(other: T, comparator: Comparator<T>): Unit

shouldNotBeGreaterThan

Verifies that this is NOT greater than other

infix fun <T : Comparable<T>> T.shouldNotBeGreaterThan(other: T): Unit

shouldNotBeGreaterThanOrEqualTo

Verifies that this is NOT greater than nor equal to other

infix fun <T : Comparable<T>> T.shouldNotBeGreaterThanOrEqualTo(other: T): Unit

shouldNotBeLessThan

Verifies that this is NOT less than other

infix fun <T : Comparable<T>> T.shouldNotBeLessThan(other: T): Unit

shouldNotBeLessThanOrEqualTo

Verifies that this is NOT less than nor equal to other

infix fun <T : Comparable<T>> T.shouldNotBeLessThanOrEqualTo(other: T): Unit