T - the type of processorpublic abstract class Processor<T>
extends java.lang.Object
implements java.lang.Runnable, java.lang.AutoCloseable
| Constructor and Description |
|---|
Processor()
Creates a new processor.
|
Processor(T input)
Creates a new processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSuppressedExceptions(java.lang.Throwable ex,
java.lang.Throwable... suppress)
Adds any non-null exceptions in the `suppress` list to the suppressed
exceptions on the main exception `ex`.
|
protected T |
getInput()
Retrieves a reference to the input.
|
void |
setInput(T input)
Sets the input to process.
|
public Processor()
public Processor(T input)
input - the input to processpublic void setInput(T input)
input - the input to processprotected T getInput()
protected void addSuppressedExceptions(java.lang.Throwable ex,
java.lang.Throwable... suppress)
ex - the main exception that suppressed exceptions will be addedsuppress - one or more exceptions that will be added as suppressedCopyright© 2012-21 Jeremy Long. All Rights Reserved.