All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.instrumentation.testing.util.ThrowingSupplier Maven / Gradle / Ivy

There is a newer version: 2.10.0-alpha
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.testing.util;

import java.util.function.Supplier;

/**
 * A utility interface representing a {@link Supplier} that may throw.
 *
 * @param  Thrown exception type.
 */
@FunctionalInterface
public interface ThrowingSupplier {
  T get() throws E;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy