io.qameta.allure.entity.WithLinks 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;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author charlie (Dmitry Baev).
*/
public interface WithLinks {
List getLinks();
void setLinks(List links);
default void updateLinks(List links) {
List updated = Stream.concat(getLinks().stream(), links.stream())
.distinct()
.collect(Collectors.toList());
setLinks(updated);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy