atrium-domain-robstoll-jvm / ch.tutteli.atrium.domain.robstoll.creating.any.typetransformation.creators / AnyTypeTransformationAssertionsImpl

AnyTypeTransformationAssertionsImpl

class AnyTypeTransformationAssertionsImpl : AnyTypeTransformationAssertions
Deprecated: Use _isA or _changeSubject; will be removed with 1.0.0

Constructors

<init>

AnyTypeTransformationAssertionsImpl()

Functions

downCast

fun <T : Any, TSub : T> downCast(description: Translatable, subType: KClass<TSub>, subjectPlant: BaseAssertionPlant<T?, *>, assertionCreator: AssertionPlant<TSub>.() -> Unit, failureHandler: FailureHandler<T, TSub>): Unit

isA

fun <TSub : Any> isA(plant: AssertionPlant<Any>, subType: KClass<TSub>, assertionCreator: AssertionPlant<TSub>.() -> Unit): Unit

isNotNull

fun <T : Any> isNotNull(plant: AssertionPlantNullable<T?>, type: KClass<T>, assertionCreator: AssertionPlant<T>.() -> Unit): Unit

transform

fun <S : Any, T : Any> transform(parameterObject: ParameterObject<S, T>, canBeTransformed: (S) -> Boolean, transform: (S) -> T, failureHandler: FailureHandler<S, T>): Unit