diff --git a/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java b/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java deleted file mode 100644 index df0f169..0000000 --- a/src/main/java/com/redhat/devtools/intellij/common/utils/function/TriConsumer.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v2.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v20.html - * - * Contributors: - * Red Hat, Inc. - ******************************************************************************/ -package com.redhat.devtools.intellij.common.utils.function; - -import java.util.Objects; - -@FunctionalInterface -public interface TriConsumer { - - /** - * Performs this operation on the given arguments. - * - * @param a the first input argument - * @param b the second input argument - * @param c the second input argument - */ - void accept(A a, B b, C c); - - /** - * Returns a composed {@code TriConsumer} that performs, in sequence, this - * operation followed by the {@code after} operation. If performing either - * operation throws an exception, it is relayed to the caller of the - * composed operation. If performing this operation throws an exception, - * the {@code after} operation will not be performed. - * - * @param after the operation to perform after this operation - * @return a composed {@code TriConsumer} that performs in sequence this - * operation followed by the {@code after} operation - * @throws NullPointerException if {@code after} is null - */ - default TriConsumer andThen( - TriConsumer after) { - Objects.requireNonNull(after); - return (A a, B b, C c) -> { - accept(a, b, c); - after.accept(a, b, c); - }; - } -} \ No newline at end of file