liusuyi
2026-05-12 59b5859e049628aaeb1b971057a7a0427f92eb16
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.ard.qs.domain;
 
import jakarta.validation.constraints.NotNull;
 
public class NetworkIdentificationType implements Comparable<NetworkIdentificationType> {
 
    /**
     * 接入类型码
     */
    private String name;
 
    /**
     * 名称
     */
    private String code;
 
    public static NetworkIdentificationType getInstance(NetworkIdentificationTypeEnum typeEnum) {
        NetworkIdentificationType industryCodeType = new NetworkIdentificationType();
        industryCodeType.setName(typeEnum.getName());
        industryCodeType.setCode(typeEnum.getCode());
        return industryCodeType;
    }
 
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    @Override
    public int compareTo(@NotNull NetworkIdentificationType networkIdentificationType) {
        return Integer.compare(Integer.parseInt(this.code), Integer.parseInt(networkIdentificationType.getCode()));
    }
}