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

net.sf.bioutils.proteomics.sample.SelectorSampleByBaseName Maven / Gradle / Ivy

Go to download

Lightweight framework for handling biological and bioinformatical data related to proteomics.

There is a newer version: 3.1.6
Show newest version
package net.sf.bioutils.proteomics.sample;

import java.util.Collection;

import net.sf.kerner.utils.collections.Selector;

public class SelectorSampleByBaseName implements Selector {

    private final String name;

    public SelectorSampleByBaseName(final String name) {
        this.name = name;
    }

    @Override
    public T select(final Collection elements) {
        for (final T s : elements) {
            if (s.getNameBase().equals(name)) {
                return s;
            }
        }
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy