Class EventSerializerImpl

java.lang.Object
application.presenter.event.serialization.EventSerializerImpl
All Implemented Interfaces:
EventSerializer

public class EventSerializerImpl extends Object implements EventSerializer
Implementation of the EventSerializer interface that allows an event to be serialized to String.
  • Constructor Details

    • EventSerializerImpl

      public EventSerializerImpl()
      Default constructor.
  • Method Details

    • eventToString

      public final Optional<String> eventToString(Event<?> eventToSerialize)
      Description copied from interface: EventSerializer
      Serialize an event to string.
      Specified by:
      eventToString in interface EventSerializer
      Parameters:
      eventToSerialize - the event to serialize.
      Returns:
      the string corresponding to the event.