public static ElemType fromOrdinal(int ord) {
    for (ElemType value : values()) {
      if (value.ordinal() == ord) {
        return value;
      }
    }
    return null;
  }
public static ElemType fromOrdinal(int ord)