fromValue static method
- int value
Creates an enumeration value from int. param value The int value. return The created PoolingMethod.
Implementation
static PoolingMethod fromValue(int value) {
switch (value) {
case 0:
return PoolingMethod.average;
case 1:
return PoolingMethod.maximum;
default:
throw Exception("Unable to find the specified enum value for $value");
}
}