org.codehaus.groovy.util
Class ManagedDoubleKeyMap.Entry<K1,K2,V>

java.lang.Object
  extended by org.codehaus.groovy.util.ManagedDoubleKeyMap.Entry<K1,K2,V>
All Implemented Interfaces:
AbstractConcurrentDoubleKeyMap.Entry<K1,K2,V>, AbstractConcurrentMapBase.Entry<V>
Direct Known Subclasses:
ManagedDoubleKeyMap.EntryWithValue
Enclosing class:
ManagedDoubleKeyMap<K1,K2,V>

public static class ManagedDoubleKeyMap.Entry<K1,K2,V>
extends java.lang.Object
implements AbstractConcurrentDoubleKeyMap.Entry<K1,K2,V>


Field Summary
private  int hash
           
(package private)  ManagedDoubleKeyMap.Ref<K1> ref1
           
(package private)  ManagedDoubleKeyMap.Ref<K2> ref2
           
(package private)  ManagedDoubleKeyMap.Segment segment
           
 
Constructor Summary
ManagedDoubleKeyMap.Entry(ReferenceBundle bundle, K1 key1, K2 key2, int hash, ManagedDoubleKeyMap.Segment segment)
           
 
Method Summary
 void clean()
           
 int getHash()
           
 V getValue()
           
 boolean isEqual(K1 key1, K2 key2, int hash)
           
 boolean isValid()
           
 void setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

private final int hash

ref1

final ManagedDoubleKeyMap.Ref<K1> ref1

ref2

final ManagedDoubleKeyMap.Ref<K2> ref2

segment

final ManagedDoubleKeyMap.Segment segment
Constructor Detail

ManagedDoubleKeyMap.Entry

public ManagedDoubleKeyMap.Entry(ReferenceBundle bundle,
                                 K1 key1,
                                 K2 key2,
                                 int hash,
                                 ManagedDoubleKeyMap.Segment segment)
Method Detail

isValid

public boolean isValid()
Specified by:
isValid in interface AbstractConcurrentMapBase.Entry<V>

isEqual

public boolean isEqual(K1 key1,
                       K2 key2,
                       int hash)
Specified by:
isEqual in interface AbstractConcurrentDoubleKeyMap.Entry<K1,K2,V>

getValue

public V getValue()
Specified by:
getValue in interface AbstractConcurrentMapBase.Entry<V>

setValue

public void setValue(V value)
Specified by:
setValue in interface AbstractConcurrentMapBase.Entry<V>

getHash

public int getHash()
Specified by:
getHash in interface AbstractConcurrentMapBase.Entry<V>

clean

public void clean()


Copyright © ${year} The Codehaus. All Rights Reserved.