@Override
  public DoubleSupplier setDoubleSupplier(final int id, final DoubleSupplier supplier) {
    if (!type.isValidDoubleId(id)) {
      throw new IllegalArgumentException("Id " + id + " is not in range for stat" + type);
    }
    return doubleSuppliers.put(id, supplier);
  }
Gets the unique id for this resource
geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticsImpl.java