valueFromName static method

BatteryTernary valueFromName(
  1. String name
)

Implementation

static BatteryTernary valueFromName(String name) {
  for (int i = 0; i < _values.length; ++i) {
    BatteryTernary num = _values[i];
    if (num.getName() == name) {
      return num;
    }
  }
  return Unknown;
}