valueFromID static method

PrintQuality valueFromID(
  1. int id
)

Implementation

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