Package uk.gov.gchq.gaffer.operation.io
Class GenericInput<I>
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.io.GenericInput<I>
-
- Type Parameters:
I
- the type of input object.
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Input<I>
,Operation
public abstract class GenericInput<I> extends Object implements Input<I>
AGenericInput
is anInput
operation that has a generic input type, where the input value could be a single Object or an array of Objects. Having a generic input type causes issues with JSON serialisation of Operations so this class is designed to help with the JSON serialisation. This class should be extended for all operations that implementInput<I>
and notMultiInput<I>
}.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericInput.InputWrapper
static class
GenericInput.InputWrapperNoTypeInfo
static class
GenericInput.MultiInputWrapper
-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.operation.io.Input
Input.Builder<OP extends Input<I>,I,B extends Input.Builder<OP,I,?>>
-
Nested classes/interfaces inherited from interface uk.gov.gchq.gaffer.operation.Operation
Operation.BaseBuilder<OP extends Operation,B extends Operation.BaseBuilder<OP,?>>
-
-
Constructor Summary
Constructors Constructor Description GenericInput()
GenericInput(I input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
getInput()
void
setInput(I input)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.operation.Operation
_getNullOrOptions, addOption, containsOption, getOption, getOption, getOptions, setOptions, shallowClone, validate, validateRequiredFieldPresent
-
-