# Class: com.pnfsoftware.jeb.util.collect.WeakValueMap

A pseudo\-map whose values do not prevent garbage collection of entries. \(The "opposite" of [WeakHashMap](WeakHashMap).\) Key\-value pairs with a null value should not be inserted to this map; no guarantee on retrieval and persistence is provided for null values. The null key is allowed. 

 This map object supports serializability, on the condition that its key and value types are also serializable.

## Constructor: WeakValueMap
- parameter: `initialCapacity`, type: `int`
- parameter: `loadFactor`, type: `float`

Description: Create a weak\-value map.
parameter: initialCapacity: initial capacity
parameter: loadFactor: load factor

## Constructor: WeakValueMap
- parameter: `initialCapacity`, type: `int`

Description: Create a weak\-value map.
parameter: initialCapacity: initial capacity

## Constructor: WeakValueMap

Description: Create a weak\-value map.

## Constructor: WeakValueMap
- parameter: `t`, type: `java.util.Map<K,V>`

Description: Create a weak\-value map initialized from another map.
parameter: t: source map

## Method: clear

Description: Remove all mappings.

## Method: containsKey
- parameter: `key`, type: `java.lang.Object`
- return type: `boolean`

Description: 
parameter: key: key
return: true if the key is present

## Method: containsValue
- parameter: `value`, type: `java.lang.Object`
- return type: `boolean`

Description: 
parameter: value: value
return: true if a live value is equal to the provided value

## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: get
- parameter: `key`, type: `java.lang.Object`
- return type: `V`

Description: Retrieve a value.
parameter: key: key
return: live value, or null

## Method: hashCode
- return type: `int`


## Method: isEmpty
- return type: `boolean`

Description: 
return: true if no mapping exists

## Method: keySet
- return type: `java.util.Set<K>`

Description: 
return: key set view

## Method: put
- parameter: `key`, type: `K`
- parameter: `value`, type: `V`
- return type: `V`

Description: Add or replace a mapping.
parameter: key: key
parameter: value: value to weakly reference
return: previous live value, or null

## Method: putAll
- parameter: `m`, type: `java.util.Map<? extends K,? extends V>`

Description: Add all mappings from a map.
parameter: m: source map

## Method: remove
- parameter: `key`, type: `java.lang.Object`
- return type: `V`

Description: Remove a mapping.
parameter: key: key
return: removed live value, or null

## Method: size
- return type: `int`

Description: 
return: number of mappings

## Method: toString
- return type: `java.lang.String`


