From: jsimomaa Date: Sat, 14 Jan 2017 07:29:15 +0000 (+0200) Subject: Deprecate BinaryFunction in favor of BiFunction functional interface X-Git-Tag: v1.27.0~23 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F269%2F2;p=simantics%2Fplatform.git Deprecate BinaryFunction in favor of BiFunction functional interface refs #6960 Change-Id: I1b543a6781239a4da3da6baab741e66717f01485 --- 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); + } }