Class

ch.awae.mcddpui.api

FunctionMutationCommand

Related Doc: package api

Permalink

case class FunctionMutationCommand[T, U](ƒ: (T) ⇒ U, name: String = null) extends MutationCommand[T, U] with Product with Serializable

A MutationCommand backed by a scala function

T

the input type

U

the output type

ƒ

the function the command is based off. may not be null.

name

the name of the command. may be null.

Version

1.1 (0.2.0), 2016-03-02

Since

MCDDPUI 0.2.0

Exceptions thrown

NullPointerException if ƒ is null

Linear Supertypes
Serializable, Serializable, Product, Equals, MutationCommand[T, U], CommandLike, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FunctionMutationCommand
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MutationCommand
  7. CommandLike
  8. AnyRef
  9. 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 FunctionMutationCommand(ƒ: (T) ⇒ U, name: String = null)

    Permalink

    creates a new command instance

    creates a new command instance

    ƒ

    the function the command is based off. may not be null.

    name

    the name of the command. may be null.

    Exceptions thrown

    NullPointerException if ƒ 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 FunctionMutationCommand[T, U] to any2stringadd[FunctionMutationCommand[T, U]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FunctionMutationCommand[T, U], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from FunctionMutationCommand[T, U] to ArrowAssoc[FunctionMutationCommand[T, U]] 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[_ >: U, 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): U

    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
    FunctionMutationCommandMutationCommand
    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) ⇒ U

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  20. val name: String

    Permalink

    the name of the command.

    the name of the command. may be null.

    Definition Classes
    FunctionMutationCommandMutationCommand
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from FunctionMutationCommand[T, U] to (T) ⇒ U performed by method mutationCommand2function in ch.awae.mcddpui.api.
    Definition Classes
    Function1 → AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val ƒ: (T) ⇒ U

    Permalink

    the function the command is based off.

    the function the command is based off. may not be null.

  30. def [B](y: B): (FunctionMutationCommand[T, U], B)

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

Shadowed Implicit Value Members

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from FunctionMutationCommand[T, U] to (T) ⇒ U performed by method mutationCommand2function in ch.awae.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:
    (functionMutationCommand: (T) ⇒ U).andThen(g)
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(v1: T): U

    Permalink
    Implicit information
    This member is added by an implicit conversion from FunctionMutationCommand[T, U] to (T) ⇒ U performed by method mutationCommand2function in ch.awae.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:
    (functionMutationCommand: (T) ⇒ U).apply(v1)
    Definition Classes
    Function1

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MutationCommand[T, U]

Inherited from CommandLike

Inherited from AnyRef

Inherited from Any

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

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

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

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

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

Ungrouped