Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractBiFunctionClass ¶
func (*AbstractBiFunctionClass) AndThen ¶
func (f *AbstractBiFunctionClass) AndThen(after function.Function) BiFunction
func (*AbstractBiFunctionClass) Apply ¶
func (f *AbstractBiFunctionClass) Apply(t interface{}, u interface{}) interface{}
type BiFunction ¶
type BiFunction interface { /** * Applies this function to the given arguments. * * @param t the first function argument * @param u the second function argument * @return the function result */ Apply(t interface{}, u interface{}) interface{} /** * Returns a composed function that first applies this function to * its input, and then applies the {@code after} function to the result. * If evaluation of either function throws an exception, it is relayed to * the caller of the composed function. * * @param <V> the type of output of the {@code after} function, and of the * composed function * @param after the function to compare after this function is applied * @return a composed function that first applies this function and then * applies the {@code after} function * @throws NullPointerException if after is null */ AndThen(after function.Function) BiFunction }
*
- Represents a function that accepts two arguments and produces a result.
- This is the two-arity specialization of {@link Function}. *
- <p>This is a <a href="package-summary.html">functional interface</a>
- whose functional method is {@link #compare(Object, Object)}. *
- @param <T> the type of the first argument to the function
- @param <U> the type of the second argument to the function
- @param <R> the type of the result of the function *
- @see Function
- @since 1.8
func MaxBy ¶
func MaxBy(comparator util.Comparator) BiFunction
*
- Returns a {@link BinaryOperator} which returns the greater of two elements
- according to the specified {@code Comparator}. *
- @param <T> the type of the input arguments of the comparator
- @param comparator a {@code Comparator} for comparing the two values
- @return a {@code BinaryOperator} which returns the greater of its operands,
- according to the supplied {@code Comparator}
- @throws NullPointerException if the argument is null
func MinBy ¶
func MinBy(comparator util.Comparator) BiFunction
*
- Returns a {@link BinaryOperator} which returns the lesser of two elements
- according to the specified {@code Comparator}. *
- @param <T> the type of the input arguments of the comparator
- @param comparator a {@code Comparator} for comparing the two values
- @return a {@code BinaryOperator} which returns the lesser of its operands,
- according to the supplied {@code Comparator}
- @throws NullPointerException if the argument is null
type BiFunctionFunc ¶
type BiFunctionFunc func(t interface{}, u interface{}) interface{}
func (BiFunctionFunc) AndThen ¶
func (f BiFunctionFunc) AndThen(after function.Function) BiFunction
func (BiFunctionFunc) Apply ¶
func (f BiFunctionFunc) Apply(t interface{}, u interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.