public int checkLong() {
    if (typeCode != LONG) {

      final String sb = "The statistic " + getName() + " with id "
          + getId()
          + " is of type "
          + StatisticDescriptorImpl.getTypeCodeName(getTypeCode())
          + " and it was expected to be a long";
      throw new IllegalArgumentException(sb);
    }
    return id;
  }
<code>StatisticDescriptor</code>s are naturally ordered by their name.

@throws IllegalArgumentException <code>o</code> is not a <code>StatisticDescriptor</code>

@see #getName
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticDescriptorImpl.java