io.qameta.allure.entity.WithGroupTime 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 charlie (Dmitry Baev).
*/
public interface WithGroupTime {
GroupTime getTime();
void setTime(GroupTime time);
default void updateTime(GroupTime groupTime) {
getTimeSafe().merge(groupTime);
}
default void updateTime(Timeable timed) {
getTimeSafe().update(timed.getTime());
}
default GroupTime getTimeSafe() {
if (getTime() == null) {
setTime(new GroupTime());
}
return getTime();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy