ordinalFromID static method

int ordinalFromID(
  1. int id
)

Implementation

static int ordinalFromID(int id) {
  for (int i = 0; i < _values.length; ++i) {
    PT num = _values[i];
    if (num.getId() == id) {
      return i;
    }
  }
  return -1;
}