Interface KeyUtils.SourceKeysFunction<T,R>

Type Parameters:
T - the type of the first argument to the function.
R - the type of the result of the function.
Enclosing class:
KeyUtils

public static interface KeyUtils.SourceKeysFunction<T,R>
Represents a function that accepts two arguments of the same base type and produces a result while the second argument is an array of T. This is similar to a BiFunction but restricts both arguments to be of the same type. Typically used in arrangements where a composite collection of keys is split into the first key and the remaining keys.

This is a functional interface whose functional method is apply(Object, Object[]).

  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T firstKey, T[] otherKeys)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(T firstKey, T[] otherKeys)
      Applies this function to the given arguments.
      Parameters:
      firstKey - the first key argument.
      otherKeys - the other keys function argument.
      Returns:
      the function result.