public interface StandardExampleAsCmd extends StandardExample
A standard example with show (example output) and source (example code as quine) and provides a command.
| Modifier and Type | Method and Description |
|---|---|
default String |
getCmd()
Returns a string that can be used as a command to execute the example.
|
String |
getID()
Returns an identifier for the example.
|
getDescription, getSource, showOutputString getID()
Returns an identifier for the example. This is useful when a set of examples exist, and an application wants to build maps of them.
default String getCmd()
Returns a string that can be used as a command to execute the example. The default implementation simply uses the identifier as command string
Copyright © 2016–2017. All rights reserved.