Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 293 Bytes
package org.usagram.clarify.validator
import org.usagram.clarify.error.CannotBeBlank
class NotBlank() extends Validator[String] {
def validate(value: String) =
failIf(value.isEmpty) {
CannotBeBlank
}
}
object NotBlank extends NotBlank {
def apply(): NotBlank = NotBlank
}