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:
null
: null
.null
: that name.null
: both names in order separated by " &
".
the first command. may not be null
.
the second command. may not be null
.
NullPointerException
if f
or g
is null
.
creates a new command instance
creates a new command instance
the first command. may not be null
.
the second command. may not be null
.
the name of the command. may be null
.
NullPointerException
if f
or g
is null
.
Chains this command with second one.
Chains this command with second one.
the output type of the second command
the command to chain with this one. May not be null
.
a MutationCommand with the functionality of this one
chained with g
.
NullPointerException
if g
is null
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.
the input
a new transformed data structure. May be null
.
Throwable
if any exceptional case occurs
Immutability of the data structure cannot be enforced. Therefore ensuring immutability (or at least apparent immutability) lies in the responsibility of the user.
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.
the name of this command.
(composedMutationCommand: (T) ⇒ V).andThen(g)
(composedMutationCommand: (T) ⇒ V).apply(v1)
(composedMutationCommand: (T) ⇒ V).toString()
A MutationCommand defined as the concatenation of two commands.
the input type
the intermediate type
the output type
1.1 (0.2.0), 2016-03-02
MCDDPUI 0.2.0
NullPointerException
iff
org
isnull
.