wt.fc.collections
Class WTKeyedHashMap.WTKeyedEntry
java.lang.Object
wt.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
key
WTReference key
value
Object value
WTKeyedHashMap.WTKeyedEntry
WTKeyedHashMap.WTKeyedEntry(WTReference key)
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)