Class EventDeserializerImpl

java.lang.Object
application.presenter.event.serialization.EventDeserializerImpl
All Implemented Interfaces:
EventDeserializer

public class EventDeserializerImpl extends Object implements EventDeserializer
Implementation of the EventDeserializer interface that allows an event to be deserialized from String.
  • Constructor Details

    • EventDeserializerImpl

      public EventDeserializerImpl()
      Default constructor.
  • Method Details

    • fromString

      public final Optional<Event<?>> fromString(String eventKey, String event)
      Description copied from interface: EventDeserializer
      Deserialize an event from string.
      Specified by:
      fromString in interface EventDeserializer
      Parameters:
      eventKey - the key of the event.
      event - the event in string format.
      Returns:
      the deserialized event as an optional.