valueFromID static method
Implementation
static BatteryTernary valueFromID(int id) {
for (int i = 0; i < _values.length; ++i) {
BatteryTernary num = _values[i];
if (num.getId() == id) {
return num;
}
}
return Unknown;
}
static BatteryTernary valueFromID(int id) {
for (int i = 0; i < _values.length; ++i) {
BatteryTernary num = _values[i];
if (num.getId() == id) {
return num;
}
}
return Unknown;
}