case class Effect[T](label: String, value: Property[T], decorator: Decorator) extends Executable with DecoratedProperty[Effect[T]]
An Effect is a property which is used to display names corresponding to side-effects.
If the side effect throws an exception, the Effect will display it alongside to the label. Otherwise only the label is displayed.
The apply method can be used to execute the Effect effect and possibly get a value out of it (but usually not
displayed): Effect(label, 1).apply() must ===(1
)
The value is stored in a Property object so it will not be evaluated until explicitly queried.
- Companion
- object
trait Serializable
trait Product
trait Equals
trait Executable
class Object
trait Matchable
class Any