X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.utils.datastructures%2Fsrc%2Forg%2Fsimantics%2Futils%2Fdatastructures%2FBinaryFunction.java;h=98412e50e4e55a99ce66348561100d3ff4c0401d;hp=30c15ca2ecb0fb569a717951560eba1742117cd5;hb=00e6f6117ede7b35f2d7fa1cccb749e09cb08009;hpb=969bd23cab98a79ca9101af33334000879fb60c5 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 30c15ca2e..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 @@ -1,18 +1,29 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.utils.datastructures; - -public interface BinaryFunction { - - R call(A1 arg1, A2 arg2); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.utils.datastructures; + +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); + } +}