com.hazelcast.util
Class SampleableConcurrentHashMap.IterableSamplingEntry

java.lang.Object
  extended by com.hazelcast.util.ConcurrentReferenceHashMap.SimpleEntry<K,V>
      extended by com.hazelcast.util.SampleableConcurrentHashMap.SamplingEntry
          extended by com.hazelcast.util.SampleableConcurrentHashMap.IterableSamplingEntry
All Implemented Interfaces:
Serializable, Iterable<SampleableConcurrentHashMap.IterableSamplingEntry>, Iterator<SampleableConcurrentHashMap.IterableSamplingEntry>, Map.Entry<K,V>
Enclosing class:
SampleableConcurrentHashMap<K,V>

public class SampleableConcurrentHashMap.IterableSamplingEntry
extends SampleableConcurrentHashMap.SamplingEntry
implements Iterable<SampleableConcurrentHashMap.IterableSamplingEntry>, Iterator<SampleableConcurrentHashMap.IterableSamplingEntry>

Iterable sampling entry to preventing from extra object creation for iteration. NOTE: Assumed that it is not accessed by multiple threads. So there is no synchronization.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.hazelcast.util.ConcurrentReferenceHashMap.SimpleEntry
key, value
 
Constructor Summary
SampleableConcurrentHashMap.IterableSamplingEntry(K key, V value)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean hasNext()
           
 Iterator<SampleableConcurrentHashMap.IterableSamplingEntry> iterator()
           
 SampleableConcurrentHashMap.IterableSamplingEntry next()
           
 void remove()
           
 
Methods inherited from class com.hazelcast.util.SampleableConcurrentHashMap.SamplingEntry
setValue
 
Methods inherited from class com.hazelcast.util.ConcurrentReferenceHashMap.SimpleEntry
getKey, getValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampleableConcurrentHashMap.IterableSamplingEntry

public SampleableConcurrentHashMap.IterableSamplingEntry(K key,
                                                         V value)
Method Detail

iterator

public Iterator<SampleableConcurrentHashMap.IterableSamplingEntry> iterator()
Specified by:
iterator in interface Iterable<SampleableConcurrentHashMap.IterableSamplingEntry>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<SampleableConcurrentHashMap.IterableSamplingEntry>

next

public SampleableConcurrentHashMap.IterableSamplingEntry next()
Specified by:
next in interface Iterator<SampleableConcurrentHashMap.IterableSamplingEntry>

remove

public void remove()
Specified by:
remove in interface Iterator<SampleableConcurrentHashMap.IterableSamplingEntry>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry<K,V>
Overrides:
equals in class SampleableConcurrentHashMap.SamplingEntry

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<K,V>
Overrides:
hashCode in class SampleableConcurrentHashMap.SamplingEntry


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.