|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
wt.fc.collections.WTKeyedHashMap
wt.fc.collections.WTValuedHashMap
The key mask for the values collection can be specified in the constructor.
If it is not specified, then the values use the same key mask as the
keys.
Supported API: true
Extendable: false
Nested Class Summary | |
(package private) class |
WTValuedHashMap.AllValues
|
(package private) class |
WTValuedHashMap.DefaultWTValuedEntry
|
(package private) class |
WTValuedHashMap.FilteredValues
|
Nested classes inherited from class java.util.AbstractMap |
|
Nested classes inherited from class wt.fc.collections.WTValuedMap |
WTValuedMap.WTValuedEntry |
Nested classes inherited from class wt.fc.collections.WTKeyedMap |
WTKeyedMap.WTEntry |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) ReferenceMap |
valueMap
|
(package private) int |
valueMask
|
Fields inherited from class wt.fc.collections.WTKeyedHashMap |
DEFAULT_INITIAL_CAPACITY, DEFAULT_KEY_MASK, DEFAULT_LOAD_FACTOR, keyMap, keyMask, nonPersistedCount, referenceMap, wtEntrySet, wtKeySet, wtValues |
Fields inherited from class java.util.AbstractMap |
|
Fields inherited from interface wt.fc.collections.WTKeyedMap |
DEFLATED_ON_SERIALIZATION |
Constructor Summary | |
WTValuedHashMap()
Supported API: true |
|
WTValuedHashMap(int initial_capacity)
Supported API: true |
|
WTValuedHashMap(int initial_capacity,
int key_mask)
Supported API: true |
|
WTValuedHashMap(int initial_capacity,
int key_mask,
int value_mask)
Supported API: true |
|
WTValuedHashMap(Map m)
Supported API: true |
|
WTValuedHashMap(Map m,
int key_mask)
Supported API: true |
|
WTValuedHashMap(Map m,
int key_mask,
int value_mask)
Supported API: true |
Method Summary | |
void |
clear()
Supported API: false |
WTKeyedHashMap |
clone(boolean deep)
Supported API: true |
(package private) Object |
connect(WTReference ref,
Object value,
boolean put)
|
boolean |
containsValue(Object value)
Supported API: false |
(package private) WTKeyedMap.WTEntry |
createEntry(WTReference r)
|
(package private) Set |
createEntrySet()
|
(package private) Collection |
createValues()
|
Persistable |
getPersistable(Persistable key)
Get the value that maps to the given key as a Persistable. |
Persistable |
getPersistable(QueryKey key)
Get the value that maps to the given key as a Persistable. |
Persistable |
getPersistable(WTReference key)
Get the value that maps to the given key as a Persistable. |
QueryKey |
getQueryKey(Persistable key)
Get the value that maps to the given key as a QueryKey. |
QueryKey |
getQueryKey(QueryKey key)
Get the value that maps to the given key as a QueryKey. |
QueryKey |
getQueryKey(WTReference key)
Get the value that maps to the given key as a QueryKey. |
WTReference |
getReference(Persistable key)
Get the value that maps to the given key as a WTReference. |
WTReference |
getReference(QueryKey key)
Get the value that maps to the given key as a WTReference. |
WTReference |
getReference(WTReference key)
Get the value that maps to the given key as a WTReference. |
int |
getValueMask()
Get the key mask for the WTCollection of values in this map. |
void |
putAll(Map map)
Supported API: true |
protected void |
putClone(WTKeyedMap.WTEntry e,
boolean deep)
Put a clone of the mapping in the given entry into this map |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WTValuedHashMap thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
(package private) WTKeyedMap.WTEntry |
referenceRemoved(WTReference r)
|
(package private) Object |
removeEntry(WTKeyedMap.WTEntry e)
|
(package private) WTValuedMap.WTValuedEntry |
valueReferenceRemoved(WTReference r)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
WTCollection |
wtValues()
Convenience method that returns the values in this map as a WTCollection. |
Methods inherited from class wt.fc.collections.WTKeyedHashMap |
addElement, clone, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectAll, connectAll, containsKey, containsKey, containsKey, containsKey, containsNonPersistedKey, createKeySet, createReferenceMap, entryIterator, entrySet, equals, expandableFilteredSet, get, get, get, get, getEntry, getEntry, getEntry, getInitialCapacity, getKeyMask, hashCode, isDeflatedOnSerialization, isEmpty, isEnabled, keySet, persistableIterator, persistableIterator, put, put, put, put, queryKeyIterator, queryKeyIterator, readVersion, referenceKeyIterator, referenceKeyIterator, remove, remove, remove, remove, removeNonPersistedKey, setDeflatedOnSerialization, size, values, wtKeySet |
Methods inherited from class java.util.AbstractMap |
toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.collections.WTKeyedMap |
connect, connect, connect, connect, connect, connect, connect, connect, connect, connectAll, connectAll, containsKey, containsKey, containsKey, containsKey, entrySet, equals, get, get, get, get, getKeyMask, hashCode, isDeflatedOnSerialization, isEmpty, isEnabled, keySet, put, put, put, put, remove, remove, remove, remove, setDeflatedOnSerialization, size, values, wtKeySet |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
int valueMask
transient ReferenceMap valueMap
Constructor Detail |
public WTValuedHashMap()
public WTValuedHashMap(int initial_capacity)
initial_capacity
- public WTValuedHashMap(int initial_capacity, int key_mask)
initial_capacity
- key_mask
- public WTValuedHashMap(int initial_capacity, int key_mask, int value_mask)
initial_capacity
- key_mask
- value_mask
- public WTValuedHashMap(Map m)
m
- public WTValuedHashMap(Map m, int key_mask)
m
- key_mask
- public WTValuedHashMap(Map m, int key_mask, int value_mask)
m
- key_mask
- value_mask
- Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTKeyedHashMap
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTKeyedHashMap
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTValuedHashMap thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void clear()
clear
in interface WTKeyedMap
clear
in class WTKeyedHashMap
public boolean containsValue(Object value)
containsValue
in interface WTKeyedMap
containsValue
in class WTKeyedHashMap
value
-
public int getValueMask()
getValueMask
in interface WTValuedMap
public WTCollection wtValues()
wtValues
in interface WTValuedMap
public Persistable getPersistable(Persistable key) throws WTException
getPersistable
in interface WTValuedMap
key
-
WTException
public Persistable getPersistable(QueryKey key) throws WTException
getPersistable
in interface WTValuedMap
key
-
WTException
public Persistable getPersistable(WTReference key) throws WTException
getPersistable
in interface WTValuedMap
key
-
WTException
public QueryKey getQueryKey(Persistable key)
getQueryKey
in interface WTValuedMap
key
-
public QueryKey getQueryKey(QueryKey key)
getQueryKey
in interface WTValuedMap
key
-
public QueryKey getQueryKey(WTReference key)
getQueryKey
in interface WTValuedMap
key
-
public WTReference getReference(Persistable key)
getReference
in interface WTValuedMap
key
-
public WTReference getReference(QueryKey key)
getReference
in interface WTValuedMap
key
-
public WTReference getReference(WTReference key)
getReference
in interface WTValuedMap
key
-
public WTKeyedHashMap clone(boolean deep)
WTKeyedHashMap
clone
in class WTKeyedHashMap
deep
-
protected void putClone(WTKeyedMap.WTEntry e, boolean deep)
WTKeyedHashMap
putClone
in class WTKeyedHashMap
e
- The entry to cloneSet createEntrySet()
createEntrySet
in class WTKeyedHashMap
Collection createValues()
createValues
in class WTKeyedHashMap
WTKeyedMap.WTEntry referenceRemoved(WTReference r)
referenceRemoved
in class WTKeyedHashMap
Object connect(WTReference ref, Object value, boolean put)
connect
in class WTKeyedHashMap
WTKeyedMap.WTEntry createEntry(WTReference r)
createEntry
in class WTKeyedHashMap
Object removeEntry(WTKeyedMap.WTEntry e)
removeEntry
in class WTKeyedHashMap
public void putAll(Map map)
WTKeyedMap
putAll
in interface WTKeyedMap
putAll
in class WTKeyedHashMap
map
- WTValuedMap.WTValuedEntry valueReferenceRemoved(WTReference r)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |