Sergei Vavinov avatar 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());
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.