Package com.aspose.tasks
Class RiskItemStatisticsCollection
- java.lang.Object
-
- com.aspose.tasks.RiskItemStatisticsCollection
-
- All Implemented Interfaces:
Iterable<RiskItemStatistics>,Map<Task,RiskItemStatistics>
public class RiskItemStatisticsCollection extends Object implements Map<Task,RiskItemStatistics>, Iterable<RiskItemStatistics>
Represents a collection containing the instances of the
RiskItemStatisticsclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Removes all items from the collection.booleancontainsKey(Object key)Returns true if this map contains a mapping for the specified key.booleancontainsValue(Object value)Returns true if this map maps one or more keys to the specified value.Set<Map.Entry<Task,RiskItemStatistics>>entrySet()Returns aSetview of the mappings contained in this map.RiskItemStatisticsget(Object task)Returns an instance of theRiskItemStatisticsclass containing in this collection which is associated with the specified Task object; null if the item is not found.booleanisEmpty()Returns true if this map contains no key-value mappingsIterator<RiskItemStatistics>iterator()Returns an enumerator for this collection.Set<Task>keySet()Returns aSetview of the keys contained in this map.RiskItemStatisticsput(Task key, RiskItemStatistics value)Associates the specified value with the specified key in this map.voidputAll(Map<? extends Task,? extends RiskItemStatistics> m)Copies all of the mappings from the specified map to this map.RiskItemStatisticsremove(Object key)Removes the mapping for a key from this map if it is present.intsize()Returns the number of elements in this collection.Collection<RiskItemStatistics>values()Returns aCollectionview of the values contained in this map.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
clear
public void clear()
Removes all items from the collection.- Specified by:
clearin interfaceMap<Task,RiskItemStatistics>
-
containsKey
public boolean containsKey(Object key)
Returns true if this map contains a mapping for the specified key.- Specified by:
containsKeyin interfaceMap<Task,RiskItemStatistics>- Parameters:
key-- Returns:
- true if this map contains a mapping for the specified key.
-
containsValue
public boolean containsValue(Object value)
Returns true if this map maps one or more keys to the specified value.- Specified by:
containsValuein interfaceMap<Task,RiskItemStatistics>- Parameters:
value-- Returns:
- true if this map maps one or more keys to the specified value.
-
entrySet
public Set<Map.Entry<Task,RiskItemStatistics>> entrySet()
Returns aSetview of the mappings contained in this map.- Specified by:
entrySetin interfaceMap<Task,RiskItemStatistics>- Returns:
-
get
public RiskItemStatistics get(Object task)
Returns an instance of theRiskItemStatisticsclass containing in this collection which is associated with the specified Task object; null if the item is not found.- Specified by:
getin interfaceMap<Task,RiskItemStatistics>- Parameters:
task- the specified instance of theTaskclass.- Returns:
- 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- Specified by:
isEmptyin interfaceMap<Task,RiskItemStatistics>- Returns:
- true if this map contains no key-value mappings
-
iterator
public Iterator<RiskItemStatistics> iterator()
Returns an enumerator for this collection.- Specified by:
iteratorin interfaceIterable<RiskItemStatistics>- Returns:
- an enumerator for this collection.
-
keySet
public Set<Task> keySet()
Returns aSetview of the keys contained in this map.- Specified by:
keySetin interfaceMap<Task,RiskItemStatistics>- Returns:
- a set view of the keys contained in this map.
-
put
public RiskItemStatistics put(Task key, RiskItemStatistics value)
Associates the specified value with the specified key in this map.- Specified by:
putin interfaceMap<Task,RiskItemStatistics>- Parameters:
key-value-- Returns:
-
putAll
public void putAll(Map<? extends Task,? extends RiskItemStatistics> m)
Copies all of the mappings from the specified map to this map.- Specified by:
putAllin interfaceMap<Task,RiskItemStatistics>- Parameters:
m-
-
remove
public RiskItemStatistics remove(Object key)
Removes the mapping for a key from this map if it is present.- Specified by:
removein interfaceMap<Task,RiskItemStatistics>- Parameters:
key-- Returns:
-
size
public int size()
Returns the number of elements in this collection.- Specified by:
sizein interfaceMap<Task,RiskItemStatistics>- Returns:
- the number of elements in this collection.
-
values
public Collection<RiskItemStatistics> values()
Returns aCollectionview of the values contained in this map.- Specified by:
valuesin interfaceMap<Task,RiskItemStatistics>- Returns:
- a collection view of the values contained in this map.
-
-