abstract class UniqProcessor extends AbstractLineProcessor<UniqArguments>
Constructor and Description |
---|
UniqProcessor(UniqCommand command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Method and Description |
---|---|
boolean |
processLine(Line line)
Processes a single line and returns true if this
LineProcessor is
ready to process more lines. |
protected abstract boolean |
processLine(Line line,
LineProcessor output) |
getArguments, getCommand, getContext, getOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish
public UniqProcessor(UniqCommand command, ExecutionContext context, LineProcessor output)
public final boolean processLine(Line line)
LineProcessor
LineProcessor
is
ready to process more lines. Returning false indicates that the process
can be finished
because subsequent lines would not
change the result anyway.line
- the line to processLineProcessor
is ready to process more
lines, and false if it does not require any more input linesprotected abstract boolean processLine(Line line, LineProcessor output)
Copyright © 2024. All rights reserved.