io.qameta.allure.tree.TreeGroup 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.tree;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
/**
* @author charlie (Dmitry Baev).
*/
public interface TreeGroup extends TreeNode {
Set getChildren();
void addChild(TreeNode node);
default Optional findNodeOfType(final String name, final Class type) {
return getChildren().stream()
.filter(type::isInstance)
.map(type::cast)
.filter(node -> Objects.equals(node.getName(), name))
.findFirst();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy