
com.github.tommyettinger.function.ObjObjToLongBiFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of funderby Show documentation
Show all versions of funderby Show documentation
Java 8+ functional interfaces for primitive types
The newest version!
package com.github.tommyettinger.function;
/**
* Represents an operation on a {@code T}-valued operand and a {@code U}-valued
* operand that produces a {@code long}-valued result.
*
* This is identical to {@code ToLongBiFunction} in Java 8, and is present here so environments
* that support lambdas but not Java 8 APIs (such as RoboVM) can use it.
*
* This is a functional interface whose functional method is {@link #applyAsLong(Object, Object)}.
*/
@FunctionalInterface
public interface ObjObjToLongBiFunction {
/**
* Applies this function to the given arguments.
*
* @param first the first function argument
* @param second the second function argument
* @return the function result
*/
long applyAsLong(T first, U second);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy