Class BiVersionFunction<A,B,R>

java.lang.Object
de.eldoria.eldoutilities.crossversion.function.BaseVersionFunction<BiFunction<A,B,R>>
de.eldoria.eldoutilities.crossversion.function.BiVersionFunction<A,B,R>
Type Parameters:
A - first Input Type
B - second Input Type
R - result Type

public class BiVersionFunction<A,B,R> extends BaseVersionFunction<BiFunction<A,B,R>>
A BiFunction with version sensitive context.
  • Constructor Details

  • Method Details

    • apply

      public R apply(A a, B b)
      Execute the function for the current version.
      Parameters:
      a - first parameter of the function.
      b - second parameter of the function
      Returns:
      value of the function
      Throws:
      UnsupportedVersionException - when no function is defined for the server version.