yangys
2024-03-31 2969df3e404db3cd116f27db1495e523ce05bf86
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
45
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;
    }
}