public interface Command
toString() method and how to de-serialize from string using fromString(String)
method.| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
fromString(String commandString)
Implementation will have to de-serialize from string.
|
void fromString(String commandString)
commandString - String representation of a command. Can be XML, JSON or whatever you like,
so long as toString() produces a string and this method initializes a new
object with the same exact values.void execute()
Copyright © 2016. All rights reserved.