package org.opendaylight.controller.md.sal.dom.api;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import java.time.Instant;
import java.util.Date;
/**
* Generic event interface.
*/
-public interface DOMEvent {
+@SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification = "Migration")
+public interface DOMEvent extends org.opendaylight.mdsal.dom.api.DOMEvent {
+
+ @Override
+ default Instant getEventInstant() {
+ final Date eventTime = getEventTime();
+ return eventTime != null ? eventTime.toInstant() : null;
+ }
/**
* Get the time of the event occurrence.