提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 分区类型 |
|
7 |
* @date 2021/2/20 |
|
8 |
*/ |
|
9 |
public enum EM_ALGORITHM_PARTITION_TYPE { |
|
10 |
/** 未知 */ |
|
11 |
EM_ALGORITHM_PARTITION_UNKNOWN, |
|
12 |
/** ext4分区 */ |
|
13 |
EM_ALGORITHM_PARTITION_EXT4, |
|
14 |
/** suqshfs分区 */ |
|
15 |
EM_ALGORITHM_PARTITION_SUQSHFS, |
|
16 |
/** ubifs分区 */ |
|
17 |
EM_ALGORITHM_PARTITION_UBIFS; |
|
18 |
|
|
19 |
public static EM_ALGORITHM_PARTITION_TYPE getAlgorithmPartitionType(int type) { |
|
20 |
for (EM_ALGORITHM_PARTITION_TYPE partitionType : EM_ALGORITHM_PARTITION_TYPE.values()) { |
|
21 |
if (partitionType.ordinal() == type) { |
|
22 |
return partitionType; |
|
23 |
} |
|
24 |
} |
|
25 |
return EM_ALGORITHM_PARTITION_UNKNOWN; |
|
26 |
} |
|
27 |
} |