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
RiskItemStatistics
class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Removes all items from the collection.boolean
containsKey(Object key)
Returns true if this map contains a mapping for the specified key.boolean
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value.Set<Map.Entry<Task,RiskItemStatistics>>
entrySet()
Returns aSet
view of the mappings contained in this map.RiskItemStatistics
get(Object task)
Returns an instance of theRiskItemStatistics
class containing in this collection which is associated with the specified Task object; null if the item is not found.boolean
isEmpty()
Returns true if this map contains no key-value mappingsIterator<RiskItemStatistics>
iterator()
Returns an enumerator for this collection.Set<Task>
keySet()
Returns aSet
view of the keys contained in this map.RiskItemStatistics
put(Task key, RiskItemStatistics value)
Associates the specified value with the specified key in this map.void
putAll(Map<? extends Task,? extends RiskItemStatistics> m)
Copies all of the mappings from the specified map to this map.RiskItemStatistics
remove(Object key)
Removes the mapping for a key from this map if it is present.int
size()
Returns the number of elements in this collection.Collection<RiskItemStatistics>
values()
Returns aCollection
view 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:
clear
in interfaceMap<Task,RiskItemStatistics>
-
containsKey
public boolean containsKey(Object key)
Returns true if this map contains a mapping for the specified key.- Specified by:
containsKey
in 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:
containsValue
in 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 aSet
view of the mappings contained in this map.- Specified by:
entrySet
in interfaceMap<Task,RiskItemStatistics>
- Returns:
-
get
public RiskItemStatistics get(Object task)
Returns an instance of theRiskItemStatistics
class containing in this collection which is associated with the specified Task object; null if the item is not found.- Specified by:
get
in interfaceMap<Task,RiskItemStatistics>
- Parameters:
task
- the specified instance of theTask
class.- 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:
isEmpty
in 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:
iterator
in interfaceIterable<RiskItemStatistics>
- Returns:
- an enumerator for this collection.
-
keySet
public Set<Task> keySet()
Returns aSet
view of the keys contained in this map.- Specified by:
keySet
in 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:
put
in 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:
putAll
in 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:
remove
in interfaceMap<Task,RiskItemStatistics>
- Parameters:
key
-- Returns:
-
size
public int size()
Returns the number of elements in this collection.- Specified by:
size
in interfaceMap<Task,RiskItemStatistics>
- Returns:
- the number of elements in this collection.
-
values
public Collection<RiskItemStatistics> values()
Returns aCollection
view of the values contained in this map.- Specified by:
values
in interfaceMap<Task,RiskItemStatistics>
- Returns:
- a collection view of the values contained in this map.
-
-