Builder

Builder subclass for this corrector. Builds a corrector from predicates for weak and strong correction circumstances.

Author

fzzyhmstrs

Since

0.2.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Applies a EntryCorrector to both weak and strong inputs

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

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

Applies an EntryCorrector for correcting strong inputs

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

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

Link copied to clipboard

Applies an EntryCorrector for correcting weak inputs

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

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