
io.qameta.allure.entity.WithTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-plugin-api Show documentation
Show all versions of allure-plugin-api Show documentation
Module allure-plugin-api of Allure Framework.
package io.qameta.allure.entity;
/**
* @author Dmitry Baev [email protected]
* Date: 31.01.16
*/
public interface WithTime {
void setTime(final Time time);
default void setTime(final Long start, final Long stop) {
setTime(new Time()
.withStart(start)
.withStop(stop)
.withDuration((start == null || stop == null) ? null : stop - start)
);
}
default void setTime(final Long duration) {
setTime(new Time()
.withDuration(duration)
);
}
Time getTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy