Packages

  • package root
    Definition Classes
    root
  • package data
    Definition Classes
    root
  • package validation

    A set of cats related data types for validation specific to our needs that included data driven validation while still supporting multple styles such as DSL or non-DSL.

    A set of cats related data types for validation specific to our needs that included data driven validation while still supporting multple styles such as DSL or non-DSL.

    Overview

    By using cats you can compose on the Result or the Validator depending on your needs. Some additonal methods for defining a Validator are provided using the Tester classes--smart constructors for Validator.

    Definition Classes
    data
  • object StrictApplicativeAlgebra
    Definition Classes
    validation
  • eitherAlg
  • eitherNecAlg
  • optionAlg
  • validatedAlg

implicit object eitherAlg extends StrictApplicativeAlgebra[[β$2$]Either[String, β$2$], String]

Linear Supertypes
StrictApplicativeAlgebra[[β$2$]Either[String, β$2$], String], ApplicativeAlgebra[[β$2$]Either[String, β$2$], String], Algebra[[β$2$]Either[String, β$2$]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. eitherAlg
  2. StrictApplicativeAlgebra
  3. ApplicativeAlgebra
  4. Algebra
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Logic extends AnyRef

    Since we can fail and succeed, add logic support.

    Since we can fail and succeed, add logic support. This is really a Semigroup "combine" for a specific logic operation. Explicitly use or create an import for them as needed. We could defined an isValid type method in this trait but that's a bit of a code smell that we are using procedural logic and we can use these semigroups in other places and algorithms.

    Definition Classes
    Algebra
  2. type FF[T] = Either[String, T]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val A: ApplicativeError[[β$2$]Either[String, β$2$], String]
    Definition Classes
    eitherAlgApplicativeAlgebra
  5. def apply[I, O](implicit validator: Validator[[β$2$]Either[String, β$2$], I, O]): Validator[[β$2$]Either[String, β$2$], I, O]
    Definition Classes
    Algebra
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def fail[I]: Validator[[β$2$]Either[String, β$2$], I, I]
    Definition Classes
    ApplicativeAlgebraAlgebra
  11. def failure[I](message: (I) => String): Validator[[β$2$]Either[String, β$2$], I, I]

    Create an E potentially with the value and a message if E supports string messages, which it may not.

    Create an E potentially with the value and a message if E supports string messages, which it may not.

    Definition Classes
    eitherAlgApplicativeAlgebra
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val logic: Logic { ... /* 2 definitions in type refinement */ }
    Definition Classes
    eitherAlgAlgebra
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def pure[I, O](f: (I) => Either[String, O]): Validator[[β$2$]Either[String, β$2$], I, O]
    Definition Classes
    Algebra
  20. def succeed[I]: Validator[[β$2$]Either[String, β$2$], I, I]
    Definition Classes
    ApplicativeAlgebraAlgebra
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def test[T](id: String, failed: Validator[[β$2$]Either[String, β$2$], T, T])(isValid: (T) => Boolean): Validator[[β$2$]Either[String, β$2$], T, T]
    Definition Classes
    StrictApplicativeAlgebra
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from StrictApplicativeAlgebra[[β$2$]Either[String, β$2$], String]

Inherited from ApplicativeAlgebra[[β$2$]Either[String, β$2$], String]

Inherited from Algebra[[β$2$]Either[String, β$2$]]

Inherited from AnyRef

Inherited from Any

Ungrouped