mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Implemented forEachEntry() and forEachEntryWhile()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user