com.hazelcast.util
Class SampleableConcurrentHashMap.IterableSamplingEntry
java.lang.Object
com.hazelcast.util.ConcurrentReferenceHashMap.SimpleEntry<K,V>
com.hazelcast.util.SampleableConcurrentHashMap.SamplingEntry
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
SampleableConcurrentHashMap.IterableSamplingEntry
public SampleableConcurrentHashMap.IterableSamplingEntry(K key,
V value)
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.