public static Class<?> getTypeCodeClass(byte code) {
    switch (code) {
      case LONG:
        return long.class;
      case DOUBLE:
        return double.class;
      default:
        throw new IllegalArgumentException(
            String.format("Unknown type code: %s",
                (int) code));
    }
  }
Returns the class of the given type code

@throws IllegalArgumentException <code>code</code> is an unknown type
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticDescriptorImpl.java