ObjectRule

fun <V> ObjectRule(predicate: V.() -> Boolean, message: () -> String): ObjectRule<V>

A rule that tests the object value.

Return

Creates a new instance of ObjectRule.

Parameters

predicate

The predicate to test the object value. Returns true if the test passes; false otherwise.

message

The message to return when the test fails.