1. Stepan Koltsov
  2. bolts

Commits

Stepan Koltsov  committed e6ddde9

Function0.asFunction0V

(ignore result)

  • Participants
  • Parent commits 35dc097
  • Branches trunk

Comments (0)

Files changed (1)

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

View file
         };
     }
 
+    public Function0V asFunction0V() {
+        return new Function0V() {
+            public void apply() {
+                Function0.this.apply();
+            }
+        };
+    }
+
     /** Function0 that always return same value */
     public static <T> Function0<T> constF(final T t) {
         return new Function0<T>() {