提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
|
|
4 |
/** |
|
5 |
* @author 291189 |
|
6 |
* @description 物品类型 |
|
7 |
* @origin autoTool |
|
8 |
* @date 2023/07/14 14:46:33 |
|
9 |
*/ |
|
10 |
public enum EM_INSIDE_OBJECT_TYPE { |
|
11 |
/** |
|
12 |
算法未识别物品 |
|
13 |
*/ |
|
14 |
EM_INSIDE_OBJECT_UNKNOWN(0,"算法未识别物品"), |
|
15 |
/** |
|
16 |
刀具 |
|
17 |
*/ |
|
18 |
EM_INSIDE_OBJECT_KNIFE(1,"刀具"), |
|
19 |
/** |
|
20 |
瓶装液体 |
|
21 |
*/ |
|
22 |
EM_INSIDE_OBJECT_BOTTLELIQUID(2,"瓶装液体"), |
|
23 |
/** |
|
24 |
枪支 |
|
25 |
*/ |
|
26 |
EM_INSIDE_OBJECT_GUN(3,"枪支"), |
|
27 |
/** |
|
28 |
雨伞 |
|
29 |
*/ |
|
30 |
EM_INSIDE_OBJECT_UMBRELLA(4,"雨伞"), |
|
31 |
/** |
|
32 |
手机 |
|
33 |
*/ |
|
34 |
EM_INSIDE_OBJECT_PHONE(5,"手机"), |
|
35 |
/** |
|
36 |
笔记本 |
|
37 |
*/ |
|
38 |
EM_INSIDE_OBJECT_NOTEBOOK(6,"笔记本"), |
|
39 |
/** |
|
40 |
充电宝 |
|
41 |
*/ |
|
42 |
EM_INSIDE_OBJECT_POWERBANK(7,"充电宝"), |
|
43 |
/** |
|
44 |
鞋子 |
|
45 |
*/ |
|
46 |
EM_INSIDE_OBJECT_SHOES(8,"鞋子"), |
|
47 |
/** |
|
48 |
杠子 |
|
49 |
*/ |
|
50 |
EM_INSIDE_OBJECT_ROD(9,"杠子"), |
|
51 |
/** |
|
52 |
金属 |
|
53 |
*/ |
|
54 |
EM_INSIDE_OBJECT_METAL(10,"金属"), |
|
55 |
/** |
|
56 |
爆炸物 |
|
57 |
*/ |
|
58 |
EM_INSIDE_OBJECT_EXPLOSIVE(11,"爆炸物"), |
|
59 |
/** |
|
60 |
喷雾喷灌 |
|
61 |
*/ |
|
62 |
EM_INSIDE_OBJECT_CONTAINERSPRAY(12,"喷雾喷灌"), |
|
63 |
/** |
|
64 |
烟花爆竹 |
|
65 |
*/ |
|
66 |
EM_INSIDE_OBJECT_EXPLOSIVE_FIREWORKS(13,"烟花爆竹"), |
|
67 |
/** |
|
68 |
打火机 |
|
69 |
*/ |
|
70 |
EM_INSIDE_OBJECT_LIGHTER(14,"打火机"), |
|
71 |
/** |
|
72 |
警棍 |
|
73 |
*/ |
|
74 |
EM_INSIDE_OBJECT_STICK(15,"警棍"), |
|
75 |
/** |
|
76 |
指虎 |
|
77 |
*/ |
|
78 |
EM_INSIDE_OBJECT_BRASSKNUCKLE(16,"指虎"), |
|
79 |
/** |
|
80 |
手铐 |
|
81 |
*/ |
|
82 |
EM_INSIDE_OBJECT_HANDCUFFS(17,"手铐"), |
|
83 |
/** |
|
84 |
象牙 |
|
85 |
*/ |
|
86 |
EM_INSIDE_OBJECT_IVORY(18,"象牙"), |
|
87 |
/** |
|
88 |
书籍 |
|
89 |
*/ |
|
90 |
EM_INSIDE_OBJECT_BOOK(19,"书籍"), |
|
91 |
/** |
|
92 |
光盘 |
|
93 |
*/ |
|
94 |
EM_INSIDE_OBJECT_CD(20,"光盘"), |
|
95 |
/** |
|
96 |
锤子 |
|
97 |
*/ |
|
98 |
EM_INSIDE_OBJECT_HAMMERS(21,"锤子"), |
|
99 |
/** |
|
100 |
钳子 |
|
101 |
*/ |
|
102 |
EM_INSIDE_OBJECT_PLIERS(22,"钳子"), |
|
103 |
/** |
|
104 |
斧头 |
|
105 |
*/ |
|
106 |
EM_INSIDE_OBJECT_AXE(23,"斧头"), |
|
107 |
/** |
|
108 |
螺丝刀 |
|
109 |
*/ |
|
110 |
EM_INSIDE_OBJECT_SCREW_DRIVER(24,"螺丝刀"), |
|
111 |
/** |
|
112 |
扳手 |
|
113 |
*/ |
|
114 |
EM_INSIDE_OBJECT_WRENCH(25,"扳手"), |
|
115 |
/** |
|
116 |
电击棍 |
|
117 |
*/ |
|
118 |
EM_INSIDE_OBJECT_ELECTRIC_SHOCK_STICK(26,"电击棍"), |
|
119 |
/** |
|
120 |
保温杯 |
|
121 |
*/ |
|
122 |
EM_INSIDE_OBJECT_THERMOS(27,"保温杯"), |
|
123 |
/** |
|
124 |
玻璃杯 |
|
125 |
*/ |
|
126 |
EM_INSIDE_OBJECT_GLASS_BOTTLES(28,"玻璃杯"), |
|
127 |
/** |
|
128 |
塑料瓶 |
|
129 |
*/ |
|
130 |
EM_INSIDE_OBJECT_PLASTIC_BOTTLE(29,"塑料瓶"), |
|
131 |
/** |
|
132 |
打火机油 |
|
133 |
*/ |
|
134 |
EM_INSIDE_OBJECT_IGNITION_OIL(30,"打火机油"), |
|
135 |
/** |
|
136 |
指甲油 |
|
137 |
*/ |
|
138 |
EM_INSIDE_OBJECT_NAIL_POLISH(31,"指甲油"), |
|
139 |
/** |
|
140 |
工具 |
|
141 |
*/ |
|
142 |
EM_INSIDE_OBJECT_BLUNT_INSTRUMENT(32,"工具"), |
|
143 |
/** |
|
144 |
剪刀 |
|
145 |
*/ |
|
146 |
EM_INSIDE_OBJECT_SCISSORS(33,"剪刀"), |
|
147 |
/** |
|
148 |
电子产品 |
|
149 |
*/ |
|
150 |
EM_INSIDE_OBJECT_ELECTRONIC(34,"电子产品"), |
|
151 |
/** |
|
152 |
手枪 |
|
153 |
*/ |
|
154 |
EM_INSIDE_OBJECT_PISTOL(35,"手枪"), |
|
155 |
/** |
|
156 |
折叠刀 |
|
157 |
*/ |
|
158 |
EM_INSIDE_OBJECT_FOLDINGKNIFE(36,"折叠刀"), |
|
159 |
/** |
|
160 |
尖刀 |
|
161 |
*/ |
|
162 |
EM_INSIDE_OBJECT_SHARPKNIFE(37,"尖刀"), |
|
163 |
/** |
|
164 |
菜刀 |
|
165 |
*/ |
|
166 |
EM_INSIDE_OBJECT_KITCHENKNIFE(38,"菜刀"), |
|
167 |
/** |
|
168 |
美工刀 |
|
169 |
*/ |
|
170 |
EM_INSIDE_OBJECT_UTILITYKNIFE(39,"美工刀"), |
|
171 |
/** |
|
172 |
烟花 |
|
173 |
*/ |
|
174 |
EM_INSIDE_OBJECT_FIREWORKS(40,"烟花"), |
|
175 |
/** |
|
176 |
爆竹 |
|
177 |
*/ |
|
178 |
EM_INSIDE_OBJECT_FIRECRACKER(41,"爆竹"), |
|
179 |
/** |
|
180 |
粉末 |
|
181 |
*/ |
|
182 |
EM_INSIDE_OBJECT_POWDER(42,"粉末"), |
|
183 |
/** |
|
184 |
难穿透物品 |
|
185 |
*/ |
|
186 |
EM_INSIDE_OBJECT_IMPENETERABLE_MATERALS(43,"难穿透物品"), |
|
187 |
/** |
|
188 |
香烟 |
|
189 |
*/ |
|
190 |
EM_INSIDE_OBJECT_CIGARETTE(44,"香烟"), |
|
191 |
/** |
|
192 |
电池 |
|
193 |
*/ |
|
194 |
EM_INSIDE_OBJECT_BATTERY(45,"电池"), |
|
195 |
/** |
|
196 |
零部件 |
|
197 |
*/ |
|
198 |
EM_INSIDE_OBJECT_GUNPARTS(46,"零部件"), |
|
199 |
/** |
|
200 |
火柴 |
|
201 |
*/ |
|
202 |
EM_INSIDE_OBJECT_MATCH(47,"火柴"), |
|
203 |
/** |
|
204 |
握把 |
|
205 |
*/ |
|
206 |
EM_INSIDE_OBJECT_GUNGRIP(48,"握把"), |
|
207 |
/** |
|
208 |
弹夹 |
|
209 |
*/ |
|
210 |
EM_INSIDE_OBJECT_GUNMAGAZINE(49,"弹夹"), |
|
211 |
/** |
|
212 |
套筒 |
|
213 |
*/ |
|
214 |
EM_INSIDE_OBJECT_GUNSLEEVE(50,"套筒"), |
|
215 |
/** |
|
216 |
枪管 |
|
217 |
*/ |
|
218 |
EM_INSIDE_OBJECT_GUNBARREL(51,"枪管"), |
|
219 |
/** |
|
220 |
子弹 |
|
221 |
*/ |
|
222 |
EM_INSIDE_OBJECT_BULLET(52,"子弹"), |
|
223 |
/** |
|
224 |
手雷 |
|
225 |
*/ |
|
226 |
EM_INSIDE_OBJECT_GRENADE(53,"手雷"), |
|
227 |
/** |
|
228 |
陶瓷片 |
|
229 |
*/ |
|
230 |
EM_INSIDE_OBJECT_CERAMICSHEET(54,"陶瓷片"), |
|
231 |
/** |
|
232 |
玻璃片 |
|
233 |
*/ |
|
234 |
EM_INSIDE_OBJECT_GLASSSHEET(55,"玻璃片"), |
|
235 |
/** |
|
236 |
IPAD底壳 |
|
237 |
*/ |
|
238 |
EM_INSIDE_OBJECT_IPADBASE(56,"IPAD底壳"), |
|
239 |
/** |
|
240 |
弹弓 |
|
241 |
*/ |
|
242 |
EM_INSIDE_OBJECT_SLINGSHOT(57,"弹弓"), |
|
243 |
/** |
|
244 |
毒品 |
|
245 |
*/ |
|
246 |
EM_INSIDE_OBJECT_DRUG(58,"毒品"), |
|
247 |
/** |
|
248 |
炸药包 |
|
249 |
*/ |
|
250 |
EM_INSIDE_OBJECT_EXPLOSIVEPACKAGE(59,"炸药包"), |
|
251 |
/** |
|
252 |
纽扣电池 |
|
253 |
*/ |
|
254 |
EM_INSIDE_OBJECT_CELLBATTERY(60,"纽扣电池"), |
|
255 |
/** |
|
256 |
铅蓄电池 |
|
257 |
*/ |
|
258 |
EM_INSIDE_OBJECT_LEADBATTERY(61,"铅蓄电池"), |
|
259 |
/** |
|
260 |
金属打火机 |
|
261 |
*/ |
|
262 |
EM_INSIDE_OBJECT_METALLIGHTER(62,"金属打火机"), |
|
263 |
/** |
|
264 |
化妆瓶 |
|
265 |
*/ |
|
266 |
EM_INSIDE_OBJECT_COSMETICBOTTLE(63,"化妆瓶"), |
|
267 |
/** |
|
268 |
易拉罐 |
|
269 |
*/ |
|
270 |
EM_INSIDE_OBJECT_CONTAINERCAN(64,"易拉罐"), |
|
271 |
/** |
|
272 |
气罐 |
|
273 |
*/ |
|
274 |
EM_INSIDE_OBJECT_AIRBOTTLE(65,"气罐"), |
|
275 |
/** |
|
276 |
方刀 |
|
277 |
*/ |
|
278 |
EM_INSIDE_OBJECT_SQUAREKNIFE(66,"方刀"); |
|
279 |
|
|
280 |
private int value; |
|
281 |
|
|
282 |
private String note; |
|
283 |
|
|
284 |
public String getNote() { |
|
285 |
return note; |
|
286 |
} |
|
287 |
|
|
288 |
public int getValue() { |
|
289 |
return value; |
|
290 |
} |
|
291 |
|
|
292 |
EM_INSIDE_OBJECT_TYPE(int givenValue, String note) { |
|
293 |
this.value = givenValue; |
|
294 |
this.note = note; |
|
295 |
} |
|
296 |
|
|
297 |
public static String getNoteByValue(int givenValue) { |
|
298 |
for (EM_INSIDE_OBJECT_TYPE enumType : EM_INSIDE_OBJECT_TYPE.values()) { |
|
299 |
if (givenValue == enumType.getValue()) { |
|
300 |
return enumType.getNote(); |
|
301 |
} |
|
302 |
} |
|
303 |
return null; |
|
304 |
} |
|
305 |
|
|
306 |
public static int getValueByNote(String givenNote) { |
|
307 |
for (EM_INSIDE_OBJECT_TYPE enumType : EM_INSIDE_OBJECT_TYPE.values()) { |
|
308 |
if (givenNote.equals(enumType.getNote())) { |
|
309 |
return enumType.getValue(); |
|
310 |
} |
|
311 |
} |
|
312 |
return -1; |
|
313 |
} |
|
314 |
|
|
315 |
public static EM_INSIDE_OBJECT_TYPE getEnum(int value) { |
|
316 |
for (EM_INSIDE_OBJECT_TYPE e : EM_INSIDE_OBJECT_TYPE.values()) { |
|
317 |
if (e.getValue() == value) |
|
318 |
return e; |
|
319 |
} |
|
320 |
return EM_INSIDE_OBJECT_TYPE.EM_INSIDE_OBJECT_UNKNOWN; |
|
321 |
} |
|
322 |
|
|
323 |
} |