checkpoint-core-abstraction / com.natigbabayev.checkpoint.core / DefaultRule

DefaultRule

abstract class DefaultRule<INPUT> : Rule<INPUT, Boolean>

Child of Rule with Boolean output.

Constructors

<init>

Child of Rule with Boolean output.

DefaultRule()

Functions

canPass

This function invokes Rule.isValid with given input and passes result to Rule.invokeCallback.

open fun canPass(input: INPUT): Boolean

Inheritors

Checkpoint

Child of DefaultRule which accepts list of DefaultRule. When Checkpoint.canPass is invoked, function will go through all of the passed rules and invoke DefaultRule.canPass of each rule until first item that cannot pass. Create instance of class using Checkpoint.Builder or checkpoint dsl.

class Checkpoint<INPUT> : DefaultRule<INPUT>