Class GenericInput<I>

  • Type Parameters:
    I - the type of input object.
    All Implemented Interfaces:
    Closeable, AutoCloseable, Input<I>, Operation
    Direct Known Subclasses:
    If, While

    public abstract class GenericInput<I>
    extends Object
    implements Input<I>
    A GenericInput is an Input 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 implement Input<I> and not MultiInput<I>}.
    • Constructor Detail

      • GenericInput

        public GenericInput()
      • GenericInput

        public GenericInput​(I input)
    • Method Detail

      • getInput

        public I getInput()
        Specified by:
        getInput in interface Input<I>
      • setInput

        public void setInput​(I input)
        Specified by:
        setInput in interface Input<I>