pro.jk.ejoker.eventing.IEventSerializer Maven / Gradle / Ivy
package pro.jk.ejoker.eventing;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public interface IEventSerializer {
/**
* serialize the given events to dictionary
* @param events
* @return
*/
public Map serializer(Collection> events);
/**
* deserialize the given data to events
* @param data
* @return
*/
public List> deserializer(Map data);
}