weak

fun weak(corrector: EntryCorrector<T>): E

Applies an EntryCorrector for correcting weak inputs

Return

this builder

Author

fzzyhmstrs

Since

0.2.0

Parameters


fun weak(predicate: Predicate<T>, errorMsg: String = "Problem validating Entry!"): E

Builds a validator for weak inputs. This can't perform correction, so should be used where correction isn't feasible.

Return

this builder

Author

fzzyhmstrs

Since

0.2.0

Parameters

predicate

Predicate<T> tests

errorMsg

message presented by the ValidationResult if validation fails