fromValue static method
- int value
Creates an enumeration value from int. param value The int value. return The created FaceMatcherThreshold.
Implementation
static FaceMatcherThreshold fromValue(int value) {
switch (value) {
case 2000:
return FaceMatcherThreshold.fmr100;
case 3000:
return FaceMatcherThreshold.fmr1000;
case 4000:
return FaceMatcherThreshold.fmr10000;
case 5000:
return FaceMatcherThreshold.fmr100000;
case 6000:
return FaceMatcherThreshold.fmr1000000;
case 7000:
return FaceMatcherThreshold.fmr10000000;
case 8000:
return FaceMatcherThreshold.fmr100000000;
case 9000:
return FaceMatcherThreshold.fmr1000000000;
case 10000:
return FaceMatcherThreshold.fmr10000000000;
default:
throw Exception("Unable to find the specified enum value for $value");
}
}