faster directory moving (no recursive iteration on filesystem needed any longer)

This commit is contained in:
Sebastian Stenzel
2016-02-17 12:05:16 +01:00
parent a909095a1c
commit f93d32c6fb
2 changed files with 15 additions and 12 deletions
@@ -1,6 +1,7 @@
package org.cryptomator.common;
import java.util.concurrent.ExecutionException;
import java.util.function.BiConsumer;
import java.util.function.Function;
import com.google.common.cache.CacheBuilder;
@@ -40,4 +41,8 @@ public class WeakValuedCache<Key, Value> {
}
}
public void forEach(BiConsumer<Key, Value> function) {
delegate.asMap().forEach(function);
}
}