wt.fc.collections
Class WTKeyedHashMap.WTKeyedEntry

java.lang.Object
  extended bywt.fc.collections.WTKeyedHashMap.WTKeyedEntry
All Implemented Interfaces:
Map.Entry, WTKeyedMap.WTEntry
Direct Known Subclasses:
WTValuedHashMap.DefaultWTValuedEntry
Enclosing class:
WTKeyedHashMap

class WTKeyedHashMap.WTKeyedEntry
extends Object
implements WTKeyedMap.WTEntry


Field Summary
(package private)  WTReference key
           
(package private)  Object value
           
 
Constructor Summary
(package private) WTKeyedHashMap.WTKeyedEntry(WTReference key)
           
 
Method Summary
(package private)  WTReference connectKey(WTReference new_key)
           
 boolean equals(Object o)
           
 Object getKey()
           
 Persistable getKeyAsPersistable()
          Get a Persistable view of this entry's key.
 QueryKey getKeyAsQueryKey()
          Get a QueryKey view of this entry's key.
 WTReference getKeyAsReference()
          Get a WTReference view of this entry's key.
 Persistable getPersistable()
           
 QueryKey getQueryKey()
           
 WTReference getReference()
           
 Object getValue()
           
 int hashCode()
           
 Object setValue(Object a_Value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

WTReference key

value

Object value
Constructor Detail

WTKeyedHashMap.WTKeyedEntry

WTKeyedHashMap.WTKeyedEntry(WTReference key)
Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

getKeyAsPersistable

public Persistable getKeyAsPersistable()
                                throws WTException
Description copied from interface: WTKeyedMap.WTEntry
Get a Persistable view of this entry's key. If the key does not have a an inflated Persistable, the underlying keySet will be inflated.

Specified by:
getKeyAsPersistable in interface WTKeyedMap.WTEntry
Returns:
The persistable or null
Throws:
WTException

getKeyAsQueryKey

public QueryKey getKeyAsQueryKey()
Description copied from interface: WTKeyedMap.WTEntry
Get a QueryKey view of this entry's key. If the key is not persisted, return null

Specified by:
getKeyAsQueryKey in interface WTKeyedMap.WTEntry
Returns:
The querykey or null

getKeyAsReference

public WTReference getKeyAsReference()
Description copied from interface: WTKeyedMap.WTEntry
Get a WTReference view of this entry's key.

Specified by:
getKeyAsReference in interface WTKeyedMap.WTEntry
Returns:
A WTReference to the key

getPersistable

public Persistable getPersistable()
                           throws WTException
Specified by:
getPersistable in interface WTKeyedMap.WTEntry
Throws:
WTException

getQueryKey

public QueryKey getQueryKey()
Specified by:
getQueryKey in interface WTKeyedMap.WTEntry

getReference

public WTReference getReference()
Specified by:
getReference in interface WTKeyedMap.WTEntry

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object a_Value)
Specified by:
setValue in interface Map.Entry

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry

connectKey

WTReference connectKey(WTReference new_key)