Commits

Sergei Vavinov committed e64d3fc

s/asTupleFunction/asFunction1B/

Comments (0)

Files changed (4)

src/main/java/ru/yandex/bolts/collection/ListMap.java

     }
 
     public boolean forAll(Function2B<K, V> f) {
-        return super.forAll(f.asTupleFunction());
+        return super.forAll(f.asFunction1B());
     }
 
     public String mkString(String elemSep, final String tupleSep) {

src/main/java/ru/yandex/bolts/collection/Tuple2List.java

     }
 
     public boolean forAll(Function2B<K, V> f) {
-        return super.forAll(f.asTupleFunction());
+        return super.forAll(f.asFunction1B());
     }
 
     public String mkString(String elemSep, final String tupleSep) {

src/main/java/ru/yandex/bolts/collection/impl/AbstractMapF.java

 
     @Override
     public boolean forAllEntries(Function2B<? super K, ? super V> op) {
-        return entries().forAll(op.asTupleFunction().uncheckedCast());
+        return entries().forAll(op.asFunction1B().uncheckedCast());
     }
 
     @Override
             return value;
         }
     }
+
 } //~

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

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