wt.fc.collections
Class WTKeyedHashMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended bywt.fc.collections.WTKeyedHashMap
All Implemented Interfaces:
Cloneable, Externalizable, Map, ResultProcessor, Serializable, WTKeyedMap
Direct Known Subclasses:
WTValuedHashMap

public class WTKeyedHashMap
extends AbstractMap
implements Cloneable, WTKeyedMap, ResultProcessor, Externalizable

Follows the patterns established by the default collection implementations. The implementation of ResultProcessor.addElement(Object) uses the following algorithm:



Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private)  class WTKeyedHashMap.EntryIterator
           
(package private)  class WTKeyedHashMap.EntrySet
           
(package private)  class WTKeyedHashMap.ExpandableFilteredSet
           
(package private)  class WTKeyedHashMap.FilteredSet
           
private static class WTKeyedHashMap.HashMapProxy
          Used to remove mappings from keyMap once a Persistable is stored, since the Persistable's hashCode has changed.
(package private)  class WTKeyedHashMap.KeySet
           
(package private)  class WTKeyedHashMap.PersistableIterator
           
(package private)  class WTKeyedHashMap.QueryKeyIterator
           
(package private)  class WTKeyedHashMap.ReferenceIterator
           
(package private)  class WTKeyedHashMap.Values
           
(package private)  class WTKeyedHashMap.ValuesIterator
           
(package private)  class WTKeyedHashMap.WTKeyedEntry
           
 
Nested classes inherited from class java.util.AbstractMap
 
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
           
(package private) static int DEFAULT_INITIAL_CAPACITY
           
(package private) static int DEFAULT_KEY_MASK
           
(package private) static float DEFAULT_LOAD_FACTOR
           
private  boolean deflatedOnSerialization
           
static long EXTERNALIZATION_VERSION_UID
           
(package private)  HashMap keyMap
           
(package private)  int keyMask
           
(package private)  int nonPersistedCount
           
protected static long OLD_FORMAT_VERSION_UID
           
(package private)  ReferenceMap referenceMap
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
(package private)  Set wtEntrySet
           
(package private)  WTSet wtKeySet
           
(package private)  Collection wtValues
           
 
Fields inherited from class java.util.AbstractMap
 
Fields inherited from interface wt.fc.collections.WTKeyedMap
DEFLATED_ON_SERIALIZATION
 
Constructor Summary
WTKeyedHashMap()
          

Supported API: true
WTKeyedHashMap(int initial_capacity)
          

Supported API: true
WTKeyedHashMap(int initial_capacity, int key_mask)
          

Supported API: true
WTKeyedHashMap(Map m)
          

Supported API: true
WTKeyedHashMap(Map m, int key_mask)
          

Supported API: true
 
Method Summary
 void addElement(Object anObj)
          Add the specified object to the result processor, and increase the size by one

Supported API: false
 void clear()
          

Supported API: false
 Object clone()
          

Supported API: true
 WTKeyedHashMap clone(boolean deep)
          

Supported API: true
 Object connect(Persistable p, Object value, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(Persistable p, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(Persistable p, WTKeyedMap source, boolean put_if_not_present)
          Adds the mapping for the given key to this map from the source map.
 Object connect(QueryKey query_key, Object value, WTKeyedMap source)
          Connects the given key with the key in source.
 Object connect(QueryKey query_key, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(QueryKey query_key, WTKeyedMap source, boolean put_if_not_present)
          Connects the given key with the key in source.
(package private)  Object connect(WTReference ref, Object value, boolean put_if_not_present)
           
 Object connect(WTReference ref, Object value, WTKeyedMap source)
          Connects the given key with the key in source.
 Object connect(WTReference ref, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(WTReference ref, WTKeyedMap source, boolean put_if_not_present)
          Adds the mapping for the given key to this map from the source map.
 void connectAll(WTKeyedMap source)
          Adds the mappings from the source map to this map.
 void connectAll(WTKeyedMap source, boolean put_if_not_present)
          Adds the mappings from the source map to this map.
 boolean containsKey(Object key)
          

Supported API: false
 boolean containsKey(Persistable p)
          

Supported API: false
 boolean containsKey(QueryKey query_key)
          

Supported API: false
 boolean containsKey(WTReference ref)
          

Supported API: false
(package private)  boolean containsNonPersistedKey(Persistable p)
           
 boolean containsValue(Object value)
          

Supported API: false
(package private)  WTKeyedMap.WTEntry createEntry(WTReference key)
           
(package private)  Set createEntrySet()
           
(package private)  WTSet createKeySet()
           
(package private)  ReferenceMap createReferenceMap()
           
(package private)  Collection createValues()
           
(package private)  Iterator entryIterator()
           
 Set entrySet()
          

Supported API: false
 boolean equals(Object o)
          

Supported API: true
(package private)  WTSet expandableFilteredSet(Class filter, boolean include_subclasses, WTSet source)
           
 Object get(Object key)
          

Supported API: false
 Object get(Persistable p)
          

Supported API: true
 Object get(QueryKey query_key)
          

Supported API: false
 Object get(WTReference ref)
          

Supported API: false
(package private)  WTKeyedMap.WTEntry getEntry(Persistable p)
           
(package private)  WTKeyedMap.WTEntry getEntry(QueryKey query_key)
           
(package private)  WTKeyedMap.WTEntry getEntry(WTReference ref)
           
static int getInitialCapacity(int size)
          Get the initial capacity that should be used for a new map that is intended to hold the given number of elements.
 int getKeyMask()
          

Supported API: false
 int hashCode()
          

Supported API: false
 boolean isDeflatedOnSerialization()
          Gets the value of the attribute: deflatedOnSerialization.
 boolean isEmpty()
          

Supported API: true
 boolean isEnabled(int mask)
          

Supported API: false
 Set keySet()
          

Supported API: false
(package private)  Iterator persistableIterator()
           
(package private)  Iterator persistableIterator(Class filter, boolean include_subclasses)
           
 Object put(Object key, Object value)
          

Supported API: false
 Object put(Persistable p, Object value)
          

Supported API: false
 Object put(QueryKey query_key, Object value)
          

Supported API: false
 Object put(WTReference ref, Object value)
          

Supported API: false
 void putAll(Map map)
          

Supported API: false
protected  void putClone(WTKeyedMap.WTEntry e, boolean deep)
          Put a clone of the mapping in the given entry into this map
(package private)  Iterator queryKeyIterator()
           
(package private)  Iterator queryKeyIterator(Class filter, boolean include_subclasses)
           
 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(WTKeyedHashMap thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
(package private)  Iterator referenceKeyIterator()
           
(package private)  Iterator referenceKeyIterator(Class filter, boolean include_subclasses)
           
(package private)  WTKeyedMap.WTEntry referenceRemoved(WTReference r)
           
 Object remove(Object key)
          

Supported API: false
 Object remove(Persistable p)
          

Supported API: false
 Object remove(QueryKey query_key)
          

Supported API: false
 Object remove(WTReference ref)
          

Supported API: false
(package private)  Object removeEntry(WTKeyedMap.WTEntry e)
           
(package private)  Object removeNonPersistedKey(Persistable p)
           
 void setDeflatedOnSerialization(boolean a_DeflatedOnSerialization)
          Sets the value of the attribute: deflatedOnSerialization.
 int size()
          

Supported API: false
 Collection values()
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 WTSet wtKeySet()
          

Supported API: false
 
Methods inherited from class java.util.AbstractMap
toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

deflatedOnSerialization

private transient boolean deflatedOnSerialization

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

DEFAULT_INITIAL_CAPACITY

static final int DEFAULT_INITIAL_CAPACITY
See Also:
Constant Field Values

DEFAULT_KEY_MASK

static final int DEFAULT_KEY_MASK
See Also:
Constant Field Values

DEFAULT_LOAD_FACTOR

static final float DEFAULT_LOAD_FACTOR
See Also:
Constant Field Values

keyMask

int keyMask

nonPersistedCount

transient int nonPersistedCount

keyMap

transient volatile HashMap keyMap

referenceMap

transient ReferenceMap referenceMap

wtKeySet

transient WTSet wtKeySet

wtEntrySet

transient Set wtEntrySet

wtValues

transient Collection wtValues
Constructor Detail

WTKeyedHashMap

public WTKeyedHashMap()


Supported API: true


WTKeyedHashMap

public WTKeyedHashMap(int initial_capacity)


Supported API: true

Parameters:
initial_capacity -

WTKeyedHashMap

public WTKeyedHashMap(int initial_capacity,
                      int key_mask)


Supported API: true

Parameters:
initial_capacity -
key_mask -

WTKeyedHashMap

public WTKeyedHashMap(Map m)


Supported API: true

Parameters:
m -

WTKeyedHashMap

public WTKeyedHashMap(Map m,
                      int key_mask)


Supported API: true

Parameters:
m -
key_mask -
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WTKeyedHashMap thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

clone

public Object clone()


Supported API: true

Returns:
Object

clone

public WTKeyedHashMap clone(boolean deep)


Supported API: true

Parameters:
deep -
Returns:
WTKeyedHashMap

isDeflatedOnSerialization

public boolean isDeflatedOnSerialization()
Gets the value of the attribute: deflatedOnSerialization.

Supported API: false

Specified by:
isDeflatedOnSerialization in interface WTKeyedMap
Returns:
boolean

setDeflatedOnSerialization

public void setDeflatedOnSerialization(boolean a_DeflatedOnSerialization)
                                throws WTPropertyVetoException
Sets the value of the attribute: deflatedOnSerialization.

Supported API: false

Specified by:
setDeflatedOnSerialization in interface WTKeyedMap
Parameters:
a_DeflatedOnSerialization -
Throws:
WTPropertyVetoException

clear

public void clear()


Supported API: false

Specified by:
clear in interface WTKeyedMap

connect

public Object connect(Persistable p,
                      WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. If the key does not exist in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
p -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap
See Also:
connect(Persistable,WTKeyedMap,boolean)

connect

public Object connect(QueryKey query_key,
                      WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. If the key does not exists in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
query_key -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap
See Also:
connect(Persistable,WTKeyedMap,boolean)

connect

public Object connect(WTReference ref,
                      WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. If the key does not exists in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
ref -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap
See Also:
connect(WTReference,WTKeyedMap,boolean)

connect

public Object connect(Persistable p,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Adds the mapping for the given key to this map from the source map. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
p -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connect

public Object connect(WTReference ref,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Adds the mapping for the given key to this map from the source map. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
ref -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connect

public Object connect(QueryKey query_key,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Connects the given key with the key in source. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
query_key -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connect

public Object connect(Persistable p,
                      Object value,
                      WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. If the key does not exist in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
p -
value -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connect

public Object connect(QueryKey query_key,
                      Object value,
                      WTKeyedMap source)
Connects the given key with the key in source. When the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa..

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
query_key -
value -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connect

public Object connect(WTReference ref,
                      Object value,
                      WTKeyedMap source)
Connects the given key with the key in source. When the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa..

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
ref -
value -
source -
Returns:
The old value for key in this map, if any
Throws:
IllegalArgumentException - If the source does not have the same key type as this map.
ClassCastException - If this map does not support connection with the source's implementation of WTKeyedMap

connectAll

public void connectAll(WTKeyedMap source)
Adds the mappings from the source map to this map. When the keys are inflated or refreshed in the source map, they are also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connectAll in interface WTKeyedMap
Parameters:
source -
Throws:
IllegalArgumentException - If source does not have the same key type as this map
ClassCastException - If this map does not support connection with source's implementation of WTKeyedMap.
See Also:
connectAll(WTKeyedMap,boolean)

connectAll

public void connectAll(WTKeyedMap source,
                       boolean put_if_not_present)
Adds the mappings from the source map to this map. When the keys are inflated or refreshed in the source map, they are also inflated or refreshed in this map, and vice versa. If put_if_not_present is true, then mappings in the source map that don't exist in this map are added to this map.

Supported API: false

Specified by:
connectAll in interface WTKeyedMap
Parameters:
source -
put_if_not_present -
Throws:
IllegalArgumentException - If source does not have the same key type as this map
ClassCastException - If this map does not support connection with source's implementation of WTKeyedMap.

containsKey

public boolean containsKey(Object key)


Supported API: false

Specified by:
containsKey in interface WTKeyedMap
Parameters:
key -
Returns:
boolean

containsKey

public boolean containsKey(Persistable p)


Supported API: false

Specified by:
containsKey in interface WTKeyedMap
Parameters:
p -
Returns:
boolean

containsKey

public boolean containsKey(QueryKey query_key)


Supported API: false

Specified by:
containsKey in interface WTKeyedMap
Parameters:
query_key -
Returns:
boolean

containsKey

public boolean containsKey(WTReference ref)


Supported API: false

Specified by:
containsKey in interface WTKeyedMap
Parameters:
ref -
Returns:
boolean

containsValue

public boolean containsValue(Object value)


Supported API: false

Specified by:
containsValue in interface WTKeyedMap
Parameters:
value -
Returns:
boolean

entrySet

public Set entrySet()


Supported API: false

Specified by:
entrySet in interface WTKeyedMap
Returns:
Set

equals

public boolean equals(Object o)


Supported API: true

Specified by:
equals in interface WTKeyedMap
Parameters:
o -
Returns:
boolean

get

public Object get(Object key)


Supported API: false

Specified by:
get in interface WTKeyedMap
Parameters:
key -
Returns:
Object

get

public Object get(Persistable p)


Supported API: true

Specified by:
get in interface WTKeyedMap
Parameters:
p -
Returns:
Object

get

public Object get(QueryKey query_key)


Supported API: false

Specified by:
get in interface WTKeyedMap
Parameters:
query_key -
Returns:
Object

get

public Object get(WTReference ref)


Supported API: false

Specified by:
get in interface WTKeyedMap
Parameters:
ref -
Returns:
Object

getKeyMask

public int getKeyMask()


Supported API: false

Specified by:
getKeyMask in interface WTKeyedMap
Returns:
int

hashCode

public int hashCode()


Supported API: false

Specified by:
hashCode in interface WTKeyedMap
Returns:
int

isEmpty

public boolean isEmpty()


Supported API: true

Specified by:
isEmpty in interface WTKeyedMap
Returns:
boolean

isEnabled

public boolean isEnabled(int mask)


Supported API: false

Specified by:
isEnabled in interface WTKeyedMap
Parameters:
mask -
Returns:
boolean

keySet

public Set keySet()


Supported API: false

Specified by:
keySet in interface WTKeyedMap
Returns:
Set

put

public Object put(Object key,
                  Object value)


Supported API: false

Specified by:
put in interface WTKeyedMap
Parameters:
key -
value -
Returns:
Object

put

public Object put(Persistable p,
                  Object value)


Supported API: false

Specified by:
put in interface WTKeyedMap
Parameters:
p -
value -
Returns:
Object

put

public Object put(QueryKey query_key,
                  Object value)


Supported API: false

Specified by:
put in interface WTKeyedMap
Parameters:
query_key -
value -
Returns:
Object

put

public Object put(WTReference ref,
                  Object value)


Supported API: false

Specified by:
put in interface WTKeyedMap
Parameters:
ref -
value -
Returns:
Object

putAll

public void putAll(Map map)


Supported API: false

Specified by:
putAll in interface WTKeyedMap
Parameters:
map -

remove

public Object remove(Object key)


Supported API: false

Specified by:
remove in interface WTKeyedMap
Parameters:
key -
Returns:
Object

remove

public Object remove(Persistable p)


Supported API: false

Specified by:
remove in interface WTKeyedMap
Parameters:
p -
Returns:
Object

remove

public Object remove(QueryKey query_key)


Supported API: false

Specified by:
remove in interface WTKeyedMap
Parameters:
query_key -
Returns:
Object

remove

public Object remove(WTReference ref)


Supported API: false

Specified by:
remove in interface WTKeyedMap
Parameters:
ref -
Returns:
Object

size

public int size()


Supported API: false

Specified by:
size in interface WTKeyedMap
Returns:
int

values

public Collection values()


Supported API: false

Specified by:
values in interface WTKeyedMap
Returns:
Collection

wtKeySet

public WTSet wtKeySet()


Supported API: false

Specified by:
wtKeySet in interface WTKeyedMap
Returns:
WTSet

addElement

public void addElement(Object anObj)
Add the specified object to the result processor, and increase the size by one

Supported API: false

Specified by:
addElement in interface ResultProcessor
Parameters:
anObj -

connect

Object connect(WTReference ref,
               Object value,
               boolean put_if_not_present)

createReferenceMap

ReferenceMap createReferenceMap()

createEntrySet

Set createEntrySet()

createKeySet

WTSet createKeySet()

createValues

Collection createValues()

containsNonPersistedKey

boolean containsNonPersistedKey(Persistable p)

removeNonPersistedKey

Object removeNonPersistedKey(Persistable p)

createEntry

WTKeyedMap.WTEntry createEntry(WTReference key)

getEntry

WTKeyedMap.WTEntry getEntry(Persistable p)

getEntry

WTKeyedMap.WTEntry getEntry(QueryKey query_key)

getEntry

WTKeyedMap.WTEntry getEntry(WTReference ref)

referenceRemoved

WTKeyedMap.WTEntry referenceRemoved(WTReference r)

removeEntry

Object removeEntry(WTKeyedMap.WTEntry e)

entryIterator

Iterator entryIterator()

queryKeyIterator

Iterator queryKeyIterator()

queryKeyIterator

Iterator queryKeyIterator(Class filter,
                          boolean include_subclasses)

persistableIterator

Iterator persistableIterator()
                       throws WTException
Throws:
WTException

persistableIterator

Iterator persistableIterator(Class filter,
                             boolean include_subclasses)
                       throws WTException
Throws:
WTException

referenceKeyIterator

Iterator referenceKeyIterator()

referenceKeyIterator

Iterator referenceKeyIterator(Class filter,
                              boolean include_subclasses)

expandableFilteredSet

WTSet expandableFilteredSet(Class filter,
                            boolean include_subclasses,
                            WTSet source)

getInitialCapacity

public static int getInitialCapacity(int size)
Get the initial capacity that should be used for a new map that is intended to hold the given number of elements.

Parameters:
size - The number of mappings that will be added to the new map
Returns:
The optimal initial capacity for a new map of the given size

putClone

protected void putClone(WTKeyedMap.WTEntry e,
                        boolean deep)
Put a clone of the mapping in the given entry into this map

Parameters:
e - The entry to clone