X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils.datastructures%2Fsrc%2Forg%2Fsimantics%2Futils%2Fdatastructures%2FBinaryCallback.java;h=331a81cd0d02905c332c46832885717ceeeda89b;hb=refs%2Fchanges%2F89%2F389%2F1;hp=e754736309745cf54bc73f1588907ee990224c47;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryCallback.java b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryCallback.java index e75473630..331a81cd0 100644 --- a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryCallback.java +++ b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/BinaryCallback.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 BinaryCallback { - - void run(T1 arg1, T2 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.BiConsumer; + +/** + * @deprecated use {@link BiConsumer} instead + */ +@Deprecated +public interface BinaryCallback extends BiConsumer { + + void run(T1 arg1, T2 arg2); + + @Override + default void accept(T1 arg, T2 arg2) { + run(arg, arg2); + } + +}