fromValue static method
- int value
Creates an enumeration value from int. param value The int value. return The created ResourceType.
Implementation
static ResourceType fromValue(int value) {
switch (value) {
case 0:
return ResourceType.undefined;
case 1:
return ResourceType.manifest;
case 2:
return ResourceType.certificate;
case 3:
return ResourceType.tsl;
case 4:
return ResourceType.crl;
case 5:
return ResourceType.lotl;
case 6:
return ResourceType.p7S;
default:
throw Exception("Unable to find the specified enum value for $value");
}
}