Commits

Stepan Koltsov  committed 35dc097

Function0V.asFunctionReturnParam

  • Participants
  • Parent commits c088dd9

Comments (0)

Files changed (1)

File src/main/java/ru/yandex/bolts/function/Function0V.java

         };
     }
 
+    public <R> Function<R, R> asFunctionReturnParam() {
+        return new Function<R, R>() {
+            public R apply(R r) {
+                Function0V.this.apply();
+                return r;
+            }
+        };
+    }
+
     @SuppressWarnings({"unchecked"})
     private static <E extends Throwable> void throw0(Throwable e) throws E {
         throw (E) e;