Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Class RepeatingCommand.Null

java.lang.Object
  extended by org.eclipse.jpt.common.utility.command.RepeatingCommand.Null
All Implemented Interfaces:
Serializable, Command, InterruptibleCommand, RepeatingCommand
Enclosing interface:
RepeatingCommand

public static final class RepeatingCommand.Null
extends Object
implements RepeatingCommand, Serializable

Singleton implementation of the repeating 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.RepeatingCommand
RepeatingCommand.Null
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.Command
Command.Disabled
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.InterruptibleCommand
InterruptibleCommand.Interrupted
 
Field Summary
static RepeatingCommand INSTANCE
           
 
Method Summary
 void execute()
          Execute the command.
static RepeatingCommand instance()
           
 void start()
          Start the command, allowing it to begin executing with the next call to Command.execute().
 void stop()
          Stop the command; ignore further calls to Command.execute().
 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 RepeatingCommand INSTANCE
Method Detail

instance

public static RepeatingCommand instance()

start

public void start()
Description copied from interface: RepeatingCommand
Start the command, allowing it to begin executing with the next call to Command.execute().

Specified by:
start in interface RepeatingCommand

execute

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

Specified by:
execute in interface Command
Specified by:
execute in interface InterruptibleCommand

stop

public void stop()
Description copied from interface: RepeatingCommand
Stop the command; ignore further calls to Command.execute().

Specified by:
stop in interface RepeatingCommand

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.