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

com.github.houbb.web.common.dto.option.Option Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package com.github.houbb.web.common.dto.option;

/**
 * 所有的下拉框
 * 枚举值
 * @author binbin.hou
 * @since 0.0.1
 */
public class Option implements IOption {

    private String key;

    private String label;

    /**
     * @param key key
     * @param label label
     * @return this
     * @since 0.0.7
     */
    public static Option of(final String key,
                            final String label) {
        Option option = new Option();
        option.setKey(key);
        option.setLabel(label);
        return option;
    }

    @Override
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy