All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.catools.etl.model.CEtlCycles Maven / Gradle / Ivy

There is a newer version: 0.1.25
Show newest version
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