valueFromID static method

Orientation valueFromID(
  1. int id
)

Implementation

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