LongRule

fun LongRule(predicate: Long.() -> Boolean, message: () -> String): LongRule

A rule that tests the long value.

Return

Creates a new instance of LongRule.

Parameters

predicate

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

message

The message to return when the test fails.