From 00e6f6117ede7b35f2d7fa1cccb749e09cb08009 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Sat, 14 Jan 2017 09:29:15 +0200 Subject: [PATCH] Deprecate BinaryFunction in favor of BiFunction functional interface refs #6960 Change-Id: I1b543a6781239a4da3da6baab741e66717f01485 --- .../utils/datastructures/BinaryFunction.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryFunction.java b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryFunction.java index a808a1e41..98412e50e 100644 --- a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryFunction.java +++ b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryFunction.java @@ -11,8 +11,19 @@ *******************************************************************************/ package org.simantics.utils.datastructures; -public interface BinaryFunction { +import java.util.function.BiFunction; + +/** + * @deprecated use {@link BiFunction} instead + */ +@Deprecated +@FunctionalInterface +public interface BinaryFunction extends BiFunction{ R call(A1 arg1, A2 arg2); + @Override + default R apply(A1 arg, A2 arg2) { + return call(arg, arg2); + } } -- 2.47.1