Package org.exbin.bined.operation
Class BinaryDataAbstractCommand
- java.lang.Object
-
- org.exbin.bined.operation.BinaryDataAbstractCommand
-
- All Implemented Interfaces:
BinaryDataCommand
public abstract class BinaryDataAbstractCommand extends java.lang.Object implements BinaryDataCommand
Abstract code area command class.
-
-
Constructor Summary
Constructors Constructor Description BinaryDataAbstractCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Default dispose method do nothing.void
execute()
Default execution method performs simply redo operation.java.util.Optional<java.util.Date>
getExecutionTime()
Returns time of command execution.void
use()
Performs update of command use information.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.exbin.bined.operation.BinaryDataCommand
canUndo, getCaption, redo, undo
-
-
-
-
Method Detail
-
execute
public void execute() throws BinaryDataOperationException
Default execution method performs simply redo operation.- Specified by:
execute
in interfaceBinaryDataCommand
- Throws:
BinaryDataOperationException
- for operation handling issues
-
use
public void use()
Performs update of command use information.- Specified by:
use
in interfaceBinaryDataCommand
-
dispose
public void dispose() throws BinaryDataOperationException
Default dispose method do nothing.- Specified by:
dispose
in interfaceBinaryDataCommand
- Throws:
BinaryDataOperationException
- for operation handling issues
-
getExecutionTime
@Nonnull public java.util.Optional<java.util.Date> getExecutionTime()
Description copied from interface:BinaryDataCommand
Returns time of command execution.- Specified by:
getExecutionTime
in interfaceBinaryDataCommand
- Returns:
- time
-
-