public ReplaceableDoubleSupplier replaceDoubleSupplier(final DoubleSupplier newSupplier) {
    currentSupplier = newSupplier;
    return this;
  }
Replaces the current double supplier with a new one.

@param newSupplier the new double supplier
@return this ReplaceableDoubleSupplier
metrics/core/src/main/java/org/hyperledger/besu/metrics/ReplaceableDoubleSupplier.java