ObjectRule
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.