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; }