Class ReadOnlySegmentAwareEntryCollection<K,​V>

  • All Implemented Interfaces:
    Iterable<Map.Entry<K,​V>>, Collection<Map.Entry<K,​V>>

    public class ReadOnlySegmentAwareEntryCollection<K,​V>
    extends ReadOnlySegmentAwareCollection<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 used with specifically with the ReadOnlySegmentAwareEntryCollection to properly filter the entry by the key instead of the entry instance itself.

    Since:
    7.2
    Author:
    wburns