< prev index next >

src/java.base/share/classes/java/util/function/BiFunction.java

Print this page

        

@@ -20,11 +20,11 @@
  *
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
-package java.util.function;
+package javany.util.function;
 
 import java.util.Objects;
 
 /**
  * Represents a function that accepts two arguments and produces a result.

@@ -39,11 +39,11 @@
  *
  * @see Function
  * @since 1.8
  */
 @FunctionalInterface
-public interface BiFunction<T, U, R> {
+public interface BiFunction<any T, any U, any R> {
 
     /**
      * Applies this function to the given arguments.
      *
      * @param t the first function argument

@@ -63,10 +63,10 @@
      * @param after the function to apply 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
      */
-    default <V> BiFunction<T, U, V> andThen(Function<? super R, ? extends V> after) {
+    default <any V> BiFunction<T, U, V> andThen(Function<? super R, ? extends V> after) {
         Objects.requireNonNull(after);
         return (T t, U u) -> after.apply(apply(t, u));
     }
 }
< prev index next >