org.catools.atlassian.scale.model.CZScaleTestExecutions Maven / Gradle / Ivy
The newest version!
package org.catools.atlassian.scale.model;
import org.catools.common.collections.CSet;
import java.util.stream.Stream;
public class CZScaleTestExecutions extends CSet {
public CZScaleTestExecutions() {
}
public CZScaleTestExecutions(CZScaleTestExecution... c) {
super(c);
}
public CZScaleTestExecutions(Stream stream) {
super(stream);
}
public CZScaleTestExecutions(Iterable iterable) {
super(iterable);
}
public CZScaleTestExecution getById(long id) {
return getFirstOrNull(v -> v.getId() == id);
}
public CZScaleTestExecutions getExecution(CSet issueIds) {
return new CZScaleTestExecutions(getAll(e -> issueIds.contains(e.getTestCaseKey())));
}
}