Class

ch.waan.mcddpui.api

ComposedMutationCommand

Related Doc: package api

Permalink

class ComposedMutationCommand[T, U, V] extends MutationCommand[T, V]

A MutationCommand defined as the concatenation of two commands.

T

the input type

U

the intermediate type

V

the output type

Version

1.1 (0.2.0), 2016-03-02

Since

MCDDPUI 0.2.0

Exceptions thrown

NullPointerException if f or g is null.

Linear Supertypes
MutationCommand[T, V], CommandLike, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComposedMutationCommand
  2. MutationCommand
  3. CommandLike
  4. AnyRef
  5. Any
Implicitly
  1. by mutationCommand2function
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComposedMutationCommand(f: MutationCommand[T, U], g: MutationCommand[_ >: U, V])

    Permalink

    creates a new command instance with the name constructed from the names of the arguments.

    creates a new command instance with the name constructed from the names of the arguments.

    The name of the composed command is defined as:

    1. if both names are null: null.
    2. if one name is not null: that name.
    3. if both names are not null: both names in order separated by " & ".
    f

    the first command. may not be null.

    g

    the second command. may not be null.

    Exceptions thrown

    NullPointerException if f or g is null.

  2. new ComposedMutationCommand(f: MutationCommand[T, U], g: MutationCommand[_ >: U, V], _name: String)

    Permalink

    creates a new command instance

    creates a new command instance

    f

    the first command. may not be null.

    g

    the second command. may not be null.

    _name

    the name of the command. may be null.

    Exceptions thrown

    NullPointerException if f or g is null.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to any2stringadd[ComposedMutationCommand[T, U, V]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ComposedMutationCommand[T, U, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to ArrowAssoc[ComposedMutationCommand[T, U, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def andThen[V](g: MutationCommand[_ >: V, V]): MutationCommand[T, V]

    Permalink

    Chains this command with second one.

    Chains this command with second one.

    V

    the output type of the second command

    g

    the command to chain with this one. May not be null.

    returns

    a MutationCommand with the functionality of this one chained with g.

    Definition Classes
    MutationCommand
    Exceptions thrown

    NullPointerException if g is null

  7. def apply(t: T): V

    Permalink

    The transformation function for this command.

    The transformation function for this command.

    Any value returned by this function must be assumed to be valid at the command execution site. This must also include null. Any exceptional case must be indicated by throwing a Throwable.

    t

    the input

    returns

    a new transformed data structure. May be null.

    Definition Classes
    ComposedMutationCommandMutationCommand
    Annotations
    @throws( classOf[Throwable] )
    Exceptions thrown

    Throwable if any exceptional case occurs

    Note

    Immutability of the data structure cannot be enforced. Therefore ensuring immutability (or at least apparent immutability) lies in the responsibility of the user.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ T): (A) ⇒ V

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to (T) ⇒ V performed by method mutationCommand2function in ch.waan.mcddpui.api.
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. def ensuring(cond: (ComposedMutationCommand[T, U, V]) ⇒ Boolean, msg: ⇒ Any): ComposedMutationCommand[T, U, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to Ensuring[ComposedMutationCommand[T, U, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ComposedMutationCommand[T, U, V]) ⇒ Boolean): ComposedMutationCommand[T, U, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to Ensuring[ComposedMutationCommand[T, U, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): ComposedMutationCommand[T, U, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to Ensuring[ComposedMutationCommand[T, U, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ComposedMutationCommand[T, U, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to Ensuring[ComposedMutationCommand[T, U, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to StringFormat[ComposedMutationCommand[T, U, V]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  22. def name: String

    Permalink

    The name of this command.

    The name of this command.

    This is targeted at UI applications where multi-path redo is possible. In such a situation the names of the commands can be useful to distinguish different redo paths.

    returns

    the name of this command.

    Definition Classes
    ComposedMutationCommandMutationCommand
  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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (ComposedMutationCommand[T, U, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to ArrowAssoc[ComposedMutationCommand[T, U, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def andThen[A](g: (V) ⇒ A): (T) ⇒ A

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to (T) ⇒ V performed by method mutationCommand2function in ch.waan.mcddpui.api.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (composedMutationCommand: (T) ⇒ V).andThen(g)
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(v1: T): V

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to (T) ⇒ V performed by method mutationCommand2function in ch.waan.mcddpui.api.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (composedMutationCommand: (T) ⇒ V).apply(v1)
    Definition Classes
    Function1
  3. def toString(): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ComposedMutationCommand[T, U, V] to (T) ⇒ V performed by method mutationCommand2function in ch.waan.mcddpui.api.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (composedMutationCommand: (T) ⇒ V).toString()
    Definition Classes
    Function1 → AnyRef → Any

Inherited from MutationCommand[T, V]

Inherited from CommandLike

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion mutationCommand2function from ComposedMutationCommand[T, U, V] to (T) ⇒ V

Inherited by implicit conversion any2stringadd from ComposedMutationCommand[T, U, V] to any2stringadd[ComposedMutationCommand[T, U, V]]

Inherited by implicit conversion StringFormat from ComposedMutationCommand[T, U, V] to StringFormat[ComposedMutationCommand[T, U, V]]

Inherited by implicit conversion Ensuring from ComposedMutationCommand[T, U, V] to Ensuring[ComposedMutationCommand[T, U, V]]

Inherited by implicit conversion ArrowAssoc from ComposedMutationCommand[T, U, V] to ArrowAssoc[ComposedMutationCommand[T, U, V]]

Ungrouped