valueFromID static method

PrinterSettingItem valueFromID(
  1. int id
)

Implementation

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