Effect

org.specs2.form.Effect
See theEffect companion class
case object Effect

Factory methods for creating Effects. Effects values can also be concatenated to produce "summary" effects.

val e1 = Effect("hello", print("hello")) val e2 = Effect("world", print("world")) val concatenatedEffects = Effect(e1, e2) concatenatedEffects.toString == hello/world

val concatenatedEffect = Effect(", ", e1, e2) concatenatedEffects2.toString == hello, world

Attributes

Companion
class
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Effect.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def apply[T](value: => T): Effect[T]

create an Effect from a value

create an Effect from a value

Attributes

def apply[T](label: String, value: => T): Effect[T]

create an Effect with a label and a value

create an Effect with a label and a value

Attributes

def apply(e1: Effect[_], es: Effect[_]*): Effect[Any]

create an Effect from several other ones concatenating the labels

create an Effect from several other ones concatenating the labels

Attributes

def apply(separator: String, e1: Effect[_], es: Effect[_]*): Effect[Any]

create an Effect from several other ones concatenating the labels

create an Effect from several other ones concatenating the labels

Attributes

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product