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

com.ibm.ta.sdk.spi.recommendation.ModDimension Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2019,2020
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package com.ibm.ta.sdk.spi.recommendation;

import com.google.gson.annotations.Expose;

import java.util.Arrays;
import java.util.List;

public class ModDimension {
    @Expose
    private String name;
    @Expose
    private List values;
    @Expose
    private T defaultValue;

    public ModDimension(String name, T value) {
        this(name, Arrays.asList(value));
    }

    public ModDimension(String name, List values) {
        this(name, values, null);
    }

    public ModDimension(String name, List values, T defaultValue) {
        this.name = name;
        this.values = values;
        this.defaultValue = defaultValue;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List getValues() {
        return values;
    }

    public void setValues(List values) {
        this.values = values;
    }

    public T getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(T defaultValue) {
        this.defaultValue = defaultValue;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy