wt.fc.collections
Class WTValuedHashMap.DefaultWTValuedEntry

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

class WTValuedHashMap.DefaultWTValuedEntry
extends WTKeyedHashMap.WTKeyedEntry
implements WTValuedMap.WTValuedEntry


Field Summary
(package private)  WTReference key
           
(package private)  Object value
           
 
Constructor Summary
(package private) WTValuedHashMap.DefaultWTValuedEntry(WTReference r)
           
 
Method Summary
(package private)  WTReference connectKey(WTReference new_key)
           
(package private)  WTReference connectValue(WTReference new_value)
           
 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()
           
 Persistable getValueAsPersistable()
          Get a Persistable view of this entry's value.
 QueryKey getValueAsQueryKey()
          Get a QueryKey view of this entry's value.
 WTReference getValueAsReference()
          Get a WTReference view of this entry's value.
 int hashCode()
           
 Object setValue(Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.fc.collections.WTKeyedMap.WTEntry
getKeyAsPersistable, getKeyAsQueryKey, getKeyAsReference, getPersistable, getQueryKey, getReference
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, hashCode
 

Field Detail

key

WTReference key

value

Object value
Constructor Detail

WTValuedHashMap.DefaultWTValuedEntry

WTValuedHashMap.DefaultWTValuedEntry(WTReference r)
Method Detail

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry
Overrides:
getValue in class WTKeyedHashMap.WTKeyedEntry

setValue

public Object setValue(Object o)
Specified by:
setValue in interface Map.Entry
Overrides:
setValue in class WTKeyedHashMap.WTKeyedEntry

getValueAsPersistable

public Persistable getValueAsPersistable()
                                  throws WTException
Description copied from interface: WTValuedMap.WTValuedEntry
Get a Persistable view of this entry's value. If the value does not have a an inflated Persistable, the underlying values will be inflated.

Specified by:
getValueAsPersistable in interface WTValuedMap.WTValuedEntry
Returns:
The persistable or null
Throws:
WTException

getValueAsQueryKey

public QueryKey getValueAsQueryKey()
Description copied from interface: WTValuedMap.WTValuedEntry
Get a QueryKey view of this entry's value. If the value is not persisted, return null

Specified by:
getValueAsQueryKey in interface WTValuedMap.WTValuedEntry
Returns:
The querykey or null

getValueAsReference

public WTReference getValueAsReference()
Description copied from interface: WTValuedMap.WTValuedEntry
Get a WTReference view of this entry's value.

Specified by:
getValueAsReference in interface WTValuedMap.WTValuedEntry
Returns:
A WTReference to the value

connectValue

WTReference connectValue(WTReference new_value)

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

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)