wt.fc.collections
Interface WTValuedMap.WTValuedEntry

All Superinterfaces:
Map.Entry, WTKeyedMap.WTEntry
All Known Implementing Classes:
WTValuedHashMap.DefaultWTValuedEntry
Enclosing interface:
WTValuedMap

public static interface WTValuedMap.WTValuedEntry
extends WTKeyedMap.WTEntry

Allows access to the value in this entry as either a Persistable, WTReference, or QueryKey.


Method Summary
 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.
 
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, getValue, hashCode, setValue
 

Method Detail

getValueAsPersistable

public Persistable getValueAsPersistable()
                                  throws WTException
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.

Returns:
The persistable or null
Throws:
WTException

getValueAsQueryKey

public QueryKey getValueAsQueryKey()
Get a QueryKey view of this entry's value. If the value is not persisted, return null

Returns:
The querykey or null

getValueAsReference

public WTReference getValueAsReference()
Get a WTReference view of this entry's value.

Returns:
A WTReference to the value