valueFromID static method

PaperSize valueFromID(
  1. int id
)

Implementation

static PaperSize valueFromID(int id) {
  for (int i = 0; i < _values.length; ++i) {
    PaperSize num = _values[i];
    if (num.getPaperId() == id) {
      return num;
    }
  }
  return CUSTOM;
}