both

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

Applies a EntryCorrector to both weak and strong inputs

Return

this builder

Author

fzzyhmstrs

Since

0.2.0


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

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

Author

fzzyhmstrs

Since

0.2.0

Parameters

predicate

Predicate<T> tests

errorMsg

message presented by the ValidationResult if validation fails