yangys
2024-04-19 0141c3ed55171b22dd998ba037166f67e69c9aa9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.qianwen.core.tool.metadata.config;
 
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;
    }
}