Top Description Inners Fields Constructors Methods
com.mchange.v2.util

public Class DoubleWeakHashMap

extends Object
implements Map
Class Inheritance
All Implemented Interfaces
java.util.Map
Imports
java.lang.ref.ReferenceQueue, .WeakReference, java.util.AbstractSet, .ArrayList, .Collection, .HashMap, .HashSet, .Iterator, .Map, .Set, .Map.Entry, com.mchange.v1.util.AbstractMapEntry, .WrapperIterator

This class is not Thread safe. Use in single threaded contexts, or contexts where single threaded-access can be guaranteed, or wrap with Collections.synchronizedMap().

This class does not accept null keys or values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv class
private class
pack-priv class
pack-priv class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv DoubleWeakHashMap.CheckKeyHolder
pack-priv HashMap<K, V>
pack-priv ReferenceQueue<T>
pack-priv Set<E>
pack-priv ReferenceQueue<T>
pack-priv Collection<E>

Constructor Summary

AccessConstructor and Description
public
public
DoubleWeakHashMap(int initialCapacity)

public
DoubleWeakHashMap(int initialCapacity, float loadFactor)

public

Method Summary

Modifier and TypeMethod and Description
public void
public void
clear()

Implements java.util.Map.clear.

Removes all of the mappings from this map (optional operation).

public boolean
containsKey(Object
key whose presence in this map is to be tested
key
)

Implements java.util.Map.containsKey.

Returns true if this map contains a mapping for the specified key.

public boolean
containsValue(Object
value whose presence in this map is to be tested
val
)

Implements java.util.Map.containsValue.

Returns true if this map maps one or more keys to the specified value.

private DoubleWeakHashMap.WVal
doPut(Object key, Object val)

public Set<E>
entrySet()

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.

public Object
get(Object
the key whose associated value is to be returned
key
)

Implements java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

public boolean
isEmpty()

Implements java.util.Map.isEmpty.

Returns true if this map contains no key-value mappings.

public Set<E>
keySet()

Implements java.util.Map.keySet.

Returns a Set view of the keys contained in this map.

public Object
put(Object
key with which the specified value is to be associated
key
,
Object
value to be associated with the specified key
val
)

Implements java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation).

public void
putAll(Map<K, V>
mappings to be stored in this map
m
)

Implements java.util.Map.putAll.

Copies all of the mappings from the specified map to this map (optional operation).

public Object
remove(Object
key whose mapping is to be removed from the map
key
)

Implements java.util.Map.remove.

Removes the mapping for a key from this map if it is present (optional operation).

public int
size()

Implements java.util.Map.size.

Returns the number of key-value mappings in this map.

public Collection<E>
values()

Implements java.util.Map.values.

Returns a Collection view of the values contained in this map.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait