Package org.xblackcat.sjpu.cli.progress
Class AProgressPublisher
java.lang.Object
org.xblackcat.sjpu.cli.progress.AProgressPublisher
- All Implemented Interfaces:
IProgressPublisher
- Direct Known Subclasses:
BytesProgressPublisher,CountProgressPublisher,MultiThreadedProgressPublisher,PercentProgressPublisher
public abstract class AProgressPublisher extends java.lang.Object implements IProgressPublisher
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Consumer<java.lang.String>outputFields inherited from interface org.xblackcat.sjpu.cli.progress.IProgressPublisher
NO_RENDERER -
Constructor Summary
Constructors Modifier Constructor Description protectedAProgressPublisher(java.util.function.Consumer<java.lang.String> output) -
Method Summary
Modifier and Type Method Description voiddone()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xblackcat.sjpu.cli.progress.IProgressPublisher
publish
-
Field Details
-
output
protected final java.util.function.Consumer<java.lang.String> output
-
-
Constructor Details
-
AProgressPublisher
protected AProgressPublisher(java.util.function.Consumer<java.lang.String> output)
-
-
Method Details
-
done
public void done()- Specified by:
donein interfaceIProgressPublisher
-