public final class EchoFactory extends Object implements Echo.Interface<EchoCommand>
echo
command returning
a new command instance from every signature method.Modifier and Type | Field and Description |
---|---|
static EchoFactory |
INSTANCE
The singleton instance of this factory.
|
Modifier and Type | Method and Description |
---|---|
EchoCommand |
echo(EchoOptions options,
String... strings)
Writes any of the specified strings, separated by single blank
(
' ' ) characters to the standard output suppressing the
trailing line ending if the -n option is specified. |
EchoCommand |
echo(EchoOptions options,
String string)
Writes the specified string followed by a newline character to
the standard output suppressing the trailing line ending if the
-n option is specified. |
EchoCommand |
echo(String... args)
Writes any of the specified strings, separated by single blank
(
' ' ) characters to the standard output suppressing the
trailing line ending if the "-n" option is specified. |
public static final EchoFactory INSTANCE
public EchoCommand echo(String... args)
Echo.Interface
' '
) characters to the standard output suppressing the
trailing line ending if the "-n"
option is specified.echo
in interface Echo.Interface<EchoCommand>
args
- String arguments defining the options for the command and the
strings to be written to the output. Options can be specified by
acronym (with a leading dash "-") or by long name (with two leading
dashes "--").<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic EchoCommand echo(EchoOptions options, String string)
Echo.Interface
-n
option is specified.echo
in interface Echo.Interface<EchoCommand>
options
- Options for the echo command.string
- A string to be written to standard output.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic EchoCommand echo(EchoOptions options, String... strings)
Echo.Interface
' '
) characters to the standard output suppressing the
trailing line ending if the -n
option is specified.echo
in interface Echo.Interface<EchoCommand>
options
- Options for the echo command.strings
- Strings to be written to standard output, separated by single blank
characters.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsCopyright © 2024. All rights reserved.