Implemented forEachEntry() and forEachEntryWhile()

This commit is contained in:
leventov
2015-01-20 01:00:38 +07:00
parent f53a93275c
commit 06b326ab05
34 changed files with 575 additions and 239 deletions
@@ -19,6 +19,8 @@
package net.openhft.chronicle.set;
import net.openhft.chronicle.hash.KeyContext;
import net.openhft.chronicle.hash.function.Consumer;
import net.openhft.chronicle.hash.function.Predicate;
import net.openhft.chronicle.map.ChronicleMap;
import java.io.File;
@@ -130,6 +132,16 @@ class SetFromMap<E> extends AbstractSet<E>
return m.keyClass();
}
@Override
public boolean forEachEntryWhile(Predicate<? super KeyContext<E>> predicate) {
return m.forEachEntryWhile(predicate);
}
@Override
public void forEachEntry(Consumer<? super KeyContext<E>> action) {
m.forEachEntry(action);
}
@Override
public File file() {
return m.file();