com.github.houbb.web.common.dto.option.Option Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-common Show documentation
Show all versions of web-common Show documentation
The web-common tool for java.
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;
}
}