valueFromID static method

PT3 valueFromID(
  1. int id
)

Implementation

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