Trait

ch.awae.mcddpui.api

MutationFunction

Related Doc: package api

Permalink

trait MutationFunction[T, U] extends AnyRef

Functional Interface variant of the MutationCommand trait.

// Java: use implicitly as lambda with name
MutationCommand<String, String> c0 = Command.get(s -> s.toUpperCase(), "toUpperCase");
// Java: use implicitly as lambda without name. Name will be null by default
MutationCommand<String, String> c1 = Command.get(s -> s.toUpperCase());
Annotations
@FunctionalInterface()
Version

1.1 (0.1.0), 2016-02-26

Since

MCDDPUI 0.1.0

Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutationFunction
  2. AnyRef
  3. Any
Implicitly
  1. by mutatefunc2command
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(t: T): U

    Permalink

    Annotations
    @throws( classOf[Throwable] )
    See also

    MutationCommand.apply

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

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

    Implicit information
    This member is added by an implicit conversion from MutationFunction[T, U] to MutationCommand[T, U] performed by method mutatefunc2command in ch.awae.mcddpui.api.
    Definition Classes
    MutationCommand
    Exceptions thrown

    NullPointerException if g is null

  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (MutationFunction[T, U]) ⇒ Boolean, msg: ⇒ Any): MutationFunction[T, U]

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  20. 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.

    Implicit information
    This member is added by an implicit conversion from MutationFunction[T, U] to MutationCommand[T, U] performed by method mutatefunc2command in ch.awae.mcddpui.api.
    Definition Classes
    MutationCommand
  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
    Definition Classes
    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. def [B](y: B): (MutationFunction[T, U], B)

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

Shadowed Implicit Value Members

  1. 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.

    Implicit information
    This member is added by an implicit conversion from MutationFunction[T, U] to MutationCommand[T, U] performed by method mutatefunc2command 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:
    (mutationFunction: MutationCommand[T, U]).apply(t)
    Definition Classes
    MutationCommand
    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.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion mutatefunc2command from MutationFunction[T, U] to MutationCommand[T, U]

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

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

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

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

Ungrouped