wt.fc.collections
Interface WTKeyedMap.WTEntry

All Superinterfaces:
Map.Entry
All Known Subinterfaces:
WTValuedMap.WTValuedEntry
All Known Implementing Classes:
WTKeyedHashMap.WTKeyedEntry, WTValuedHashMap.DefaultWTValuedEntry
Enclosing interface:
WTKeyedMap

public static interface WTKeyedMap.WTEntry
extends Map.Entry

Allows access to the keys in the entry in either Persistable, WTReference, or QueryKey forms


Method Summary
 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()
          Deprecated. Replaced by getKeyAsPersistable()
 QueryKey getQueryKey()
          Deprecated. Replaced by getKeyAsQueryKey()
 WTReference getReference()
          Deprecated. Replaced by getKeyAsReference()
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

getPersistable

public Persistable getPersistable()
                           throws WTException
Deprecated. Replaced by getKeyAsPersistable()

Throws:
WTException

getReference

public WTReference getReference()
Deprecated. Replaced by getKeyAsReference()


getQueryKey

public QueryKey getQueryKey()
Deprecated. Replaced by getKeyAsQueryKey()


getKeyAsPersistable

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

Returns:
The persistable or null
Throws:
WTException

getKeyAsQueryKey

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

Returns:
The querykey or null

getKeyAsReference

public WTReference getKeyAsReference()
Get a WTReference view of this entry's key.

Returns:
A WTReference to the key