RiskItemStatisticsCollection

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 class.

Methods

MethodDescription
clear()Removes all items from the collection.
containsKey(Object key)Returns true if this map contains a mapping for the specified key.
containsValue(Object value)Returns true if this map maps one or more keys to the specified value.
entrySet()Returns a Set view of the mappings contained in this map.
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.
isEmpty()Returns true if this map contains no key-value mappings
iterator()Returns an enumerator for this collection.
keySet()Returns a Set view of the keys contained in this map.
put(Task key, RiskItemStatistics value)Associates the specified value with the specified key in this map.
putAll(Map<? extends Task,? extends RiskItemStatistics> m)Copies all of the mappings from the specified map to this map.
remove(Object key)Removes the mapping for a key from this map if it is present.
size()Returns the number of elements in this collection.
values()Returns a Collection view of the values contained in this map.

clear()

public void clear()

Removes all items from the collection.

containsKey(Object key)

public boolean containsKey(Object key)

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

Parameters:

ParameterTypeDescription
keyjava.lang.Object{@inheritDoc}

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

containsValue(Object value)

public boolean containsValue(Object value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.Object{@inheritDoc}

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

entrySet()

public Set<Map.Entry<Task,RiskItemStatistics>> entrySet()

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

Returns: java.util.Set<java.util.Map.Entry<com.aspose.tasks.Task,com.aspose.tasks.RiskItemStatistics>> - {@inheritDoc}

get(Object task)

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:

ParameterTypeDescription
taskjava.lang.Objectthe specified instance of the Task class.

Returns: RiskItemStatistics - risk item which is associated with the specified task object if found; null otherwise.

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()

public Iterator<RiskItemStatistics> iterator()

Returns an enumerator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.RiskItemStatistics> - an enumerator for this collection.

keySet()

public Set<Task> keySet()

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

Returns: java.util.Set<com.aspose.tasks.Task> - a set view of the keys contained in this map.

put(Task key, RiskItemStatistics value)

public RiskItemStatistics put(Task key, RiskItemStatistics value)

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

Parameters:

ParameterTypeDescription
keyTask{@inheritDoc}
valueRiskItemStatistics{@inheritDoc}

Returns: RiskItemStatistics - {@inheritDoc}

putAll(Map<? extends Task,? extends RiskItemStatistics> m)

public void putAll(Map<? extends Task,? extends RiskItemStatistics> m)

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

Parameters:

ParameterTypeDescription
mjava.util.Map<? extends com.aspose.tasks.Task,? extends com.aspose.tasks.RiskItemStatistics>{@inheritDoc}

remove(Object key)

public RiskItemStatistics remove(Object key)

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

Parameters:

ParameterTypeDescription
keyjava.lang.Object{@inheritDoc}

Returns: RiskItemStatistics - {@inheritDoc}

size()

public int size()

Returns the number of elements in this collection.

Returns: int - the number of elements in this collection.

values()

public Collection<RiskItemStatistics> values()

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

Returns: java.util.Collection<com.aspose.tasks.RiskItemStatistics> - a collection view of the values contained in this map.