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

io.engineblock.extensions.optimizers.MVParams Maven / Gradle / Ivy

There is a newer version: 2.12.65
Show newest version
package io.engineblock.extensions.optimizers;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class MVParams implements Iterable {
    private final List paramList = new ArrayList<>();

    public MVParams addParam(String name, double min, double max) {
        paramList.add(new MVParam(name,min,max));
        return this;
    }

    public int size() {
        return paramList.size();
    }

    @Override
    public Iterator iterator() {
        return paramList.iterator();
    }

    public MVParam get(int index) {
        return paramList.get(index);
    }

    public static class MVParam {
        public final String name;
        public final double min;
        public final double max;

        public MVParam(String name, double min, double max) {
            this.name = name;
            this.min = min;
            this.max = max;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy