valueFromID static method

LabelColor valueFromID(
  1. int id
)

Implementation

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