org.catools.zapi.model.CZApiProjects Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zapi Show documentation
Show all versions of zapi Show documentation
The Zephyr client to be used in other CATools projects.
package org.catools.zapi.model;
import org.catools.common.collections.CSet;
import org.catools.common.text.CStringUtil;
import java.util.stream.Stream;
public class CZApiProjects extends CSet {
public CZApiProjects() {
}
public CZApiProjects(CZApiProject... c) {
super(c);
}
public CZApiProjects(Stream stream) {
super(stream);
}
public CZApiProjects(Iterable iterable) {
super(iterable);
}
public CZApiProject getById(long id) {
return getFirstOrNull(v -> v.getId() == id);
}
public CZApiProject getByName(String name) {
return getFirstOrNull(v -> CStringUtil.equals(v.getName(), name));
}
}