
**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
java.util.Map, java.lang.Iterable
```
public class RiskItemStatisticsCollection implements Map<Task,RiskItemStatistics>, Iterable<RiskItemStatistics>
```

Represents a collection containing the instances of the [RiskItemStatistics](../../com.aspose.tasks/riskitemstatistics) class.
## Methods

| Method | Description |
| --- | --- |
| [clear()](#clear--) | Removes all items from the collection. |
| [containsKey(Object key)](#containsKey-java.lang.Object-) | Returns true if this map contains a mapping for the specified key. |
| [containsValue(Object value)](#containsValue-java.lang.Object-) | Returns true if this map maps one or more keys to the specified value. |
| [entrySet()](#entrySet--) | Returns a Set view of the mappings contained in this map. |
| [get(Object task)](#get-java.lang.Object-) | Returns an instance of the `RiskItemStatistics` class containing in this collection which is associated with the specified Task object; null if the item is not found. |
| [isEmpty()](#isEmpty--) | Returns true if this map contains no key-value mappings |
| [iterator()](#iterator--) | Returns an enumerator for this collection. |
| [keySet()](#keySet--) | Returns a Set view of the keys contained in this map. |
| [put(Task key, RiskItemStatistics value)](#put-com.aspose.tasks.Task-com.aspose.tasks.RiskItemStatistics-) | Associates the specified value with the specified key in this map. |
| [putAll(Map&lt;? extends Task,? extends RiskItemStatistics&gt; m)](#putAll-java.util.Map---extends-com.aspose.tasks.Task---extends-com.aspose.tasks.RiskItemStatistics--) | Copies all of the mappings from the specified map to this map. |
| [remove(Object key)](#remove-java.lang.Object-) | Removes the mapping for a key from this map if it is present. |
| [size()](#size--) | Returns the number of elements in this collection. |
| [values()](#values--) | Returns a Collection view of the values contained in this map. |
### clear() {#clear--}
```
public void clear()
```


Removes all items from the collection.

### containsKey(Object key) {#containsKey-java.lang.Object-}
```
public boolean containsKey(Object key)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| key | java.lang.Object | \{@inheritDoc\} |

**Returns:**
boolean - true if this map contains a mapping for the specified key.
### containsValue(Object value) {#containsValue-java.lang.Object-}
```
public boolean containsValue(Object value)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.Object | \{@inheritDoc\} |

**Returns:**
boolean - true if this map maps one or more keys to the specified value.
### entrySet() {#entrySet--}
```
public Set<Map.Entry<Task,RiskItemStatistics>> entrySet()
```


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

**Returns:**
java.util.Set&lt;java.util.Map.Entry&lt;com.aspose.tasks.Task,com.aspose.tasks.RiskItemStatistics&gt;&gt; - \{@inheritDoc\}
### get(Object task) {#get-java.lang.Object-}
```
public RiskItemStatistics get(Object task)
```


Returns an instance of the `RiskItemStatistics` class containing in this collection which is associated with the specified Task object; null if the item is not found.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| task | java.lang.Object | the specified instance of the `Task` class. |

**Returns:**
[RiskItemStatistics](../../com.aspose.tasks/riskitemstatistics) - risk item which is associated with the specified task object if found; null otherwise.
### isEmpty() {#isEmpty--}
```
public boolean isEmpty()
```


Returns true if this map contains no key-value mappings

**Returns:**
boolean - true if this map contains no key-value mappings
### iterator() {#iterator--}
```
public Iterator<RiskItemStatistics> iterator()
```


Returns an enumerator for this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.RiskItemStatistics&gt; - an enumerator for this collection.
### keySet() {#keySet--}
```
public Set<Task> keySet()
```


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

**Returns:**
java.util.Set&lt;com.aspose.tasks.Task&gt; - a set view of the keys contained in this map.
### put(Task key, RiskItemStatistics value) {#put-com.aspose.tasks.Task-com.aspose.tasks.RiskItemStatistics-}
```
public RiskItemStatistics put(Task key, RiskItemStatistics value)
```


Associates the specified value with the specified key in this map.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| key | [Task](../../com.aspose.tasks/task) | \{@inheritDoc\} |
| value | [RiskItemStatistics](../../com.aspose.tasks/riskitemstatistics) | \{@inheritDoc\} |

**Returns:**
[RiskItemStatistics](../../com.aspose.tasks/riskitemstatistics) - \{@inheritDoc\}
### putAll(Map&lt;? extends Task,? extends RiskItemStatistics&gt; m) {#putAll-java.util.Map---extends-com.aspose.tasks.Task---extends-com.aspose.tasks.RiskItemStatistics--}
```
public void putAll(Map<? extends Task,? extends RiskItemStatistics> m)
```


Copies all of the mappings from the specified map to this map.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| m | java.util.Map&lt;? extends com.aspose.tasks.Task,? extends com.aspose.tasks.RiskItemStatistics&gt; | \{@inheritDoc\} |

### remove(Object key) {#remove-java.lang.Object-}
```
public RiskItemStatistics remove(Object key)
```


Removes the mapping for a key from this map if it is present.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| key | java.lang.Object | \{@inheritDoc\} |

**Returns:**
[RiskItemStatistics](../../com.aspose.tasks/riskitemstatistics) - \{@inheritDoc\}
### size() {#size--}
```
public int size()
```


Returns the number of elements in this collection.

**Returns:**
int - the number of elements in this collection.
### values() {#values--}
```
public Collection<RiskItemStatistics> values()
```


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

**Returns:**
java.util.Collection&lt;com.aspose.tasks.RiskItemStatistics&gt; - a collection view of the values contained in this map.
