Class/Object

checklist

Rule

Related Docs: object Rule | package checklist

Permalink

sealed abstract class Rule[A, B] extends AnyRef

A Rule validates/sanitizes a value of type A producing a type B inside an Ior[NonEmptyList[Messages], B]

A

The type to be validated

B

The type to be produced

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rule
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(value: A): Checked[B]

    Permalink

    Performs validation on A

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[C](that: Rule[B, C]): Rule[A, C]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def at[P, S, T](prefix: P, lens: PLens[S, T, A, B])(implicit arg0: PathPrefix[P]): Rule[S, T]

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def composeLens[S, T](lens: PLens[S, T, A, B]): Rule[S, T]

    Permalink
  9. def contramap[C](func: (C) ⇒ A): Rule[C, B]

    Permalink
  10. def contramapPath[C, D](path: D)(func: (C) ⇒ A)(implicit arg0: PathPrefix[D]): Rule[C, B]

    Permalink
  11. def emap[C](func: (B) ⇒ Checked[C]): Rule[A, C]

    Permalink

    Maps the result type with the potential for a failure to occur.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap[C](func: (B) ⇒ Rule[A, C]): Rule[A, C]

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def kleisli: Kleisli[Checked, A, B]

    Permalink
  20. def map[C](func: (B) ⇒ C): Rule[A, C]

    Permalink
  21. def mapEachMessage(func: (Message) ⇒ Message): Rule[A, B]

    Permalink
  22. def mapMessages(func: (Messages) ⇒ Messages): Rule[A, B]

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def opt: Rule[Option[A], Option[B]]

    Permalink
  27. def prefix[P](prefix: P)(implicit arg0: PathPrefix[P]): Rule[A, B]

    Permalink
  28. def recover(func: (Messages) ⇒ Checked[B]): Rule[A, B]

    Permalink
  29. def req: Rule[Option[A], B]

    Permalink
  30. def seq[S[_]](implicit arg0: Traverse[S]): Rule[S[A], S[B]]

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def zip[C](that: Rule[A, C]): Rule[A, (B, C)]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped