Class ReadOnlySegmentAwareEntryIterator<K,​V>

  • All Implemented Interfaces:
    java.util.Iterator<java.util.Map.Entry<K,​V>>

    public class ReadOnlySegmentAwareEntryIterator<K,​V>
    extends ReadOnlySegmentAwareIterator<java.util.Map.Entry<K,​V>>
    Iterator implementation that shows a read only view of the provided iterator by only allowing values that map to a given segment using the provided consistent hash.

    This iterator is specifically used with the ReadOnlySegmentAwareEntryCollection so that it will properly filter out entries by their key instead of by the entry instance

    Since:
    7.2
    Author:
    wburns
    • Constructor Detail

      • ReadOnlySegmentAwareEntryIterator

        public ReadOnlySegmentAwareEntryIterator​(java.util.Iterator<java.util.Map.Entry<K,​V>> iter,
                                                 ConsistentHash ch,
                                                 IntSet allowedSegments)