All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.plugin.event.TimeStampedEvent Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy