Class VersionFunction<A,R>

java.lang.Object
de.eldoria.eldoutilities.crossversion.function.BaseVersionFunction<Function<A,R>>
de.eldoria.eldoutilities.crossversion.function.VersionFunction<A,R>
Type Parameters:
A - input Type
R - result Type

public class VersionFunction<A,R> extends BaseVersionFunction<Function<A,R>>
A Function with version sensitive context.
  • Constructor Details

  • Method Details

    • apply

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