AbstractBuilder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun both(corrector: EntryCorrector<T>): E

Applies a EntryCorrector to both weak and strong inputs

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.

Link copied to clipboard

Builds the EntryCorrector instance for use

Link copied to clipboard
fun strong(corrector: EntryCorrector<T>): E

Applies an EntryCorrector for correcting strong inputs

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

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

Link copied to clipboard
fun weak(corrector: EntryCorrector<T>): E

Applies an EntryCorrector for correcting weak inputs

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.