Package org.codehaus.groovy.util
Class ManagedConcurrentMap.Entry<K,V>
java.lang.Object
org.codehaus.groovy.util.ManagedReference<K>
org.codehaus.groovy.util.ManagedConcurrentMap.Entry<K,V>
- All Implemented Interfaces:
AbstractConcurrentMap.Entry<K,V>
,AbstractConcurrentMapBase.Entry<V>
,Finalizable
- Direct Known Subclasses:
ManagedConcurrentMap.EntryWithValue
- Enclosing class:
- ManagedConcurrentMap<K,V>
public static class ManagedConcurrentMap.Entry<K,V> extends ManagedReference<K> implements AbstractConcurrentMap.Entry<K,V>
-
Constructor Summary
Constructors Constructor Description Entry(ReferenceBundle bundle, ManagedConcurrentMap.Segment segment, K key, int hash)
-
Method Summary
Modifier and Type Method Description void
finalizeRef()
Deprecated.use finalizeReferencevoid
finalizeReference()
int
getHash()
V
getValue()
boolean
isEqual(K key, int hash)
boolean
isValid()
void
setValue(V value)
-
Constructor Details
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceAbstractConcurrentMapBase.Entry<K>
-
isEqual
- Specified by:
isEqual
in interfaceAbstractConcurrentMap.Entry<K,V>
-
getValue
- Specified by:
getValue
in interfaceAbstractConcurrentMapBase.Entry<K>
-
setValue
- Specified by:
setValue
in interfaceAbstractConcurrentMapBase.Entry<K>
-
getHash
public int getHash()- Specified by:
getHash
in interfaceAbstractConcurrentMapBase.Entry<K>
-
finalizeReference
public void finalizeReference()- Specified by:
finalizeReference
in interfaceFinalizable
- Overrides:
finalizeReference
in classManagedReference<K>
-
finalizeRef
Deprecated.use finalizeReference
-