Class/Object

com.github.tarao.bullet.Monad

SingleValue

Related Docs: object SingleValue | package Monad

Permalink

final case class SingleValue[T](value: T) extends AnyVal with Product with Serializable

A type tag to forbid implicit conversion on a list of monads.

It forbids an conversion from Seq[Monad[SingleValue[T]]] to Seq[T]. This is useful when you provide no Resolve.run which resolves multiple values all together but provide one which resolves each element separately (via Seq.map for example) and want to prevent users from expecting that they can be resolved at once.

Source
Monad.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SingleValue
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SingleValue(value: T)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. val value: T

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped