io.cucumber.plugin.event.TimeStampedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-plugin Show documentation
Show all versions of cucumber-plugin Show documentation
Plugin interface for Cucumber-JVM
package io.cucumber.plugin.event;
import java.time.Instant;
import java.util.Objects;
abstract class TimeStampedEvent implements Event {
private final Instant instant;
TimeStampedEvent(Instant timeInstant) {
this.instant = Objects.requireNonNull(timeInstant);
}
/**
* {@inheritDoc}
*/
@Override
public Instant getInstant() {
return instant;
}
}