public byte toOrdinal() {
    return ordinal;
  }
Returns the ordinal for this interest type.

@return the ordinal of this interest type.
geode-core/src/main/java/org/apache/geode/cache/operations/InterestType.java