org.catools.etl.model.CEtlCycles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etl Show documentation
Show all versions of etl Show documentation
The base ETL to be used in other CATools project as a base contract.
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