diff options
author | Tom Schindl | 2017-01-30 14:14:29 +0000 |
---|---|---|
committer | Tom Schindl | 2017-01-30 14:14:29 +0000 |
commit | 1eb6bff2a03e1f3aaa4ca2a17db671ddaa2d42e5 (patch) | |
tree | a4f45f77667eead7d2735f00dd66337c8c5b21f1 | |
parent | 17264ef8fe944652a13c4c7bc322e5a60df538bb (diff) | |
download | org.eclipse.efxclipse-1eb6bff2a03e1f3aaa4ca2a17db671ddaa2d42e5.tar.gz org.eclipse.efxclipse-1eb6bff2a03e1f3aaa4ca2a17db671ddaa2d42e5.tar.xz org.eclipse.efxclipse-1eb6bff2a03e1f3aaa4ca2a17db671ddaa2d42e5.zip |
Bug 511309 - Add a BiDoubleFunction to reduce the amount of auto-boxing
-rw-r--r-- | bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/function/BiDoubleFunction.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/function/BiDoubleFunction.java b/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/function/BiDoubleFunction.java new file mode 100644 index 000000000..1ac229c7e --- /dev/null +++ b/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/function/BiDoubleFunction.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2017 BestSolution.at and others. + * 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: + * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation + *******************************************************************************/ +package org.eclipse.fx.core.function; + +import java.util.function.BiFunction; + +/** + * Represents a function that accepts a two double-valued argument and produces + * a result. This is the {@code double}-consuming primitive specialization for + * {@link BiFunction}. + * + * @param <R> + * the type of the result of the function + * @since 3.0 + */ +public interface BiDoubleFunction<R> { + /** + * Applies this function to the given arguments. + * + * @param t + * @param u + * @return the function result + */ + public R apply(double t, double u); + +} |