Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Class ParameterizedCommand.Null<S>

java.lang.Object
  extended by org.eclipse.jpt.common.utility.command.ParameterizedCommand.Null<S>
All Implemented Interfaces:
Serializable, InterruptibleParameterizedCommand<S>, ParameterizedCommand<S>
Enclosing interface:
ParameterizedCommand<T>

public static final class ParameterizedCommand.Null<S>
extends Object
implements ParameterizedCommand<S>, Serializable

Singleton implementation of the command interface that will do nothing when executed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.ParameterizedCommand
ParameterizedCommand.Disabled<S>, ParameterizedCommand.Null<S>
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.InterruptibleParameterizedCommand
InterruptibleParameterizedCommand.Interrupted<S>
 
Field Summary
static ParameterizedCommand INSTANCE
           
 
Method Summary
 void execute(S argument)
          Execute the command.
static
<R> ParameterizedCommand<R>
instance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final ParameterizedCommand INSTANCE
Method Detail

instance

public static <R> ParameterizedCommand<R> instance()

execute

public void execute(S argument)
Description copied from interface: ParameterizedCommand
Execute the command. The semantics of the command is determined by the contract between the client and server.

Specified by:
execute in interface InterruptibleParameterizedCommand<S>
Specified by:
execute in interface ParameterizedCommand<S>

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.