Class GenericWrapper<W>

java.lang.Object
com.fluxtion.ext.streaming.api.GenericWrapper<W>
All Implemented Interfaces:
Stateful<W>, Wrapper<W>

public class GenericWrapper<W>
extends java.lang.Object
implements Wrapper<W>
Creates a Wrapper from a GenericEventHandler wrapping the value inside the GenericEvent.
Author:
Greg Higgins [email protected]
  • Constructor Details

    • GenericWrapper

      public GenericWrapper​(java.lang.Class<W> wrappedClass)
  • Method Details

    • onEvent

      public boolean onEvent()
    • event

      public W event()
      Description copied from interface: Wrapper
      The wrapped node
      Specified by:
      event in interface Wrapper<W>
      Returns:
      the wrapped node
    • eventClass

      public java.lang.Class<W> eventClass()
      Description copied from interface: Wrapper
      The type of the wrapped node
      Specified by:
      eventClass in interface Wrapper<W>
      Returns:
      wrapped node class