package com.qianwen.core.tool.metadata.config;
|
|
/* loaded from: blade-core-tool-9.3.0.0-SNAPSHOT.jar:org/springblade/core/tool/metadata/config/SimpleConfigKey.class */
|
public class SimpleConfigKey<V> implements ConfigKey<V> {
|
private String key;
|
private String name;
|
private Class<V> type;
|
|
public void setKey(final String key) {
|
this.key = key;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setType(final Class<V> type) {
|
this.type = type;
|
}
|
|
private SimpleConfigKey(final String key, final String name, final Class<V> type) {
|
this.key = key;
|
this.name = name;
|
this.type = type;
|
}
|
|
public static <V> SimpleConfigKey<V> of(final String key, final String name, final Class<V> type) {
|
return new SimpleConfigKey<>(key, name, type);
|
}
|
|
@Override // org.springblade.core.tool.metadata.config.ConfigKey
|
public String getKey() {
|
return this.key;
|
}
|
|
@Override // org.springblade.core.tool.metadata.config.ConfigKey
|
public String getName() {
|
return this.name;
|
}
|
|
@Override // org.springblade.core.tool.metadata.config.ConfigKey
|
public Class<V> getType() {
|
return this.type;
|
}
|
}
|