InputType - The type for the input object in the pair.OutputType - The type for the output object in the pair.public abstract class AbstractInputOutputPair<InputType,OutputType> extends AbstractCloneableSerializable implements InputOutputPair<InputType,OutputType>
InputOutputPair interface. It
implements the toString, getFirst, and getSecond methods.| Constructor and Description |
|---|
AbstractInputOutputPair()
Creates a new
AbstractInputOutputPair. |
| Modifier and Type | Method and Description |
|---|---|
InputType |
getFirst()
Gets the input, which is the first element in the pair.
|
OutputType |
getSecond()
Gets the output, which is the second element in the pair.
|
java.lang.String |
toString() |
cloneequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInput, getOutputpublic AbstractInputOutputPair()
AbstractInputOutputPair.public java.lang.String toString()
toString in class java.lang.Objectpublic InputType getFirst()
getFirst in interface Pair<InputType,OutputType>public OutputType getSecond()
getSecond in interface Pair<InputType,OutputType>