blob: 61557e533a02eedba52717ab7b4d687a2e3f3be8 [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.utils;
import java.util.function.Consumer;
/**
* Similar to a {@link Consumer} but throws a single {@link Throwable}.
*
* @param <T> the type of the input
* @param <E> the type of the {@link Throwable}
*/
@FunctionalInterface
public interface ThrowingConsumer<T, E extends Throwable> {
void accept(T t) throws E;
}