Same Value Rule

class SameValueRule(comparison: () -> String, val errorMessage: String) : BaseRule

Author

Jimly A.

Since

02-Nov-20.

Parameters

comparison

method that returns the string you want to compare

errorMessage

message to display when view not validated

Constructors

Link copied to clipboard
fun SameValueRule(comparison: () -> String, errorMessage: String)

Functions

Link copied to clipboard
open override fun validate(view: View): Boolean

Method to validate view with the comparison

Properties

Link copied to clipboard
open override val errorMessage: String

Sources

Link copied to clipboard