Package software.amazon.smithy.cli
Class CliPrinter.ConsumerPrinter
- java.lang.Object
-
- software.amazon.smithy.cli.CliPrinter.ConsumerPrinter
-
- All Implemented Interfaces:
CliPrinter
- Enclosing interface:
- CliPrinter
public static final class CliPrinter.ConsumerPrinter extends java.lang.Object implements CliPrinter
CliPrinter that calls a Consumer that accepts a CharSequence.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.smithy.cli.CliPrinter
CliPrinter.ConsumerPrinter
-
-
Constructor Summary
Constructors Constructor Description ConsumerPrinter(java.util.function.Consumer<java.lang.CharSequence> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
println(java.lang.String text)
Prints text to the writer and appends a new line.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.cli.CliPrinter
style
-
-
-
-
Method Detail
-
println
public void println(java.lang.String text)
Description copied from interface:CliPrinter
Prints text to the writer and appends a new line.- Specified by:
println
in interfaceCliPrinter
- Parameters:
text
- Text to print.
-
-