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

org.catools.zapi.model.CZApiProjects Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy