Commits

Sergei Vavinov committed d2b40eb

keeping deprecated asTupleFunction for a while

  • Participants
  • Parent commits cb11695

Comments (0)

Files changed (1)

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

         return Function2B.<A, B>bind2F2().bind1(this);
     }
 
+    @Deprecated
+    public Function1B<Tuple2<A, B>> asTupleFunction() {
+        return new Function1B<Tuple2<A, B>>() {
+            public boolean apply(Tuple2<A, B> a) {
+                return Function2B.this.apply(a.get1(), a.get2());
+            }
+        };
+    }
+
     public Function<Tuple2<A, B>, Boolean> asFunction() {
         return new Function<Tuple2<A, B>, Boolean>() {
             public Boolean apply(Tuple2<A, B> a) {