Interface Function2<T1,​T2,​R>

All Superinterfaces:
BiFunction<T1,​T2,​R>, Serializable
All Known Implementing Classes:
CheckedFunction2
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Function2<T1,​T2,​R>
extends BiFunction<T1,​T2,​R>, Serializable
Function2 is a two argument lambda which takes two arguments and returns a result of a transformation. A Function2 is used by RichIterable.injectInto() and RichIterable.collectWith() methods. See documentation of these methods for more details.
Since:
1.0
See Also:
RichIterable.injectInto(IV, org.eclipse.collections.api.block.function.Function2<? super IV, ? super T, ? extends IV>), RichIterable.collectWith(org.eclipse.collections.api.block.function.Function2<? super T, ? super P, ? extends V>, P)
  • Method Summary

    Modifier and Type Method Description
    default R apply​(T1 argument1, T2 argument2)  
    R value​(T1 argument1, T2 argument2)  

    Methods inherited from interface java.util.function.BiFunction

    andThen