K- the key type of accessed
E- the entry type
public interface HashSegmentContext<K,E extends HashEntry<K>> extends HashContext<K>, net.openhft.chronicle.core.io.Closeable
|Modifier and Type||Method and Description|
Performs the given action for each present entry in this segment until all entries have been processed or the action throws an
Checks the given predicate on each present entry in this segment until all entries have been processed or the predicate returns
Returns the number of present entries in this segment.
Exception. Exceptions thrown by the action are relayed to the caller.
action- the action to be performed for each entry in this segment
falsefor some entry, or throws an
Exception. Exceptions thrown by the predicate are relayed to the caller.
If this segment is empty (i. e.
size() call returns 0), this method returns
predicate- the predicate to be checked for each entry in this segment
trueif the predicate returned
truefor all checked entries,
falseif it returned
falsefor some entry
Copyright © 2017. All rights reserved.