org.catools.etl.model.CEtlCycles Maven / Gradle / Ivy
package org.catools.etl.model;
import org.catools.common.collections.CSet;
import org.catools.common.text.CStringUtil;
import java.util.Objects;
import java.util.stream.Stream;
public class CEtlCycles extends CSet {
public CEtlCycles() {
}
public CEtlCycles(CEtlCycle... c) {
super(c);
}
public CEtlCycles(Stream stream) {
super(stream);
}
public CEtlCycles(Iterable iterable) {
super(iterable);
}
public CEtlCycle getByName(long projectId, long versionId, String name) {
return getFirstOrNull(c -> CStringUtil.equalsIgnoreCase(c.getName(), name) &&
Objects.equals(c.getVersion().getProject().getId(), projectId) &&
Objects.equals(c.getVersion().getId(), versionId));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy