提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration;/** |
H |
2 |
* @author 47081 |
|
3 |
* @descriptio |
|
4 |
* @date 2020/11/9 |
|
5 |
* @version 1.0 |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* @author 47081 |
|
10 |
* @version 1.0 |
|
11 |
* @description 马赛克类型 |
|
12 |
* @date 2020/11/9 |
|
13 |
*/ |
|
14 |
public enum NET_EM_MOSAIC_TYPE { |
|
15 |
NET_EM_MOSAIC_UNKNOWN(0, "未知"), |
|
16 |
NET_EM_MOSAIC_8(8, "[8x8大小] 马赛克"), |
|
17 |
NET_EM_MOSAIC_16(16, "[16x16大小] 马赛克"), |
|
18 |
|
|
19 |
NET_EM_MOSAIC_24(24, "[24x24大小] 马赛克"), |
|
20 |
NET_EM_MOSAIC_32(32, "[32x32大小] 马赛克"); |
|
21 |
|
|
22 |
private NET_EM_MOSAIC_TYPE(int type, String desc) { |
|
23 |
this.type = type; |
|
24 |
this.desc = desc; |
|
25 |
} |
|
26 |
|
|
27 |
private int type; |
|
28 |
private String desc; |
|
29 |
|
|
30 |
public int getType() { |
|
31 |
return type; |
|
32 |
} |
|
33 |
|
|
34 |
public void setType(int type) { |
|
35 |
this.type = type; |
|
36 |
} |
|
37 |
|
|
38 |
public String getDesc() { |
|
39 |
return desc; |
|
40 |
} |
|
41 |
|
|
42 |
public void setDesc(String desc) { |
|
43 |
this.desc = desc; |
|
44 |
} |
|
45 |
|
|
46 |
public static NET_EM_MOSAIC_TYPE getMosaicType(int type){ |
|
47 |
for (NET_EM_MOSAIC_TYPE mosaic:NET_EM_MOSAIC_TYPE.values()) { |
|
48 |
if(type==mosaic.getType()){ |
|
49 |
return mosaic; |
|
50 |
} |
|
51 |
} |
|
52 |
return null; |
|
53 |
} |
|
54 |
} |