public class RiskItemStatisticsCollection extends Object implements Map<Task,RiskItemStatistics>, Iterable<RiskItemStatistics>
Represents a collection containing the instances of the RiskItemStatistics
class.
Modifier and Type | Method and 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 a
Set view of the mappings contained in this map. |
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. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings
|
Iterator<RiskItemStatistics> |
iterator()
Returns an enumerator for this collection.
|
Set<Task> |
keySet()
Returns a
Set 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 a
Collection view of the values contained in this map. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
forEach, spliterator
public void clear()
clear
in interface Map<Task,RiskItemStatistics>
public boolean containsKey(Object key)
containsKey
in interface Map<Task,RiskItemStatistics>
key
- public boolean containsValue(Object value)
containsValue
in interface Map<Task,RiskItemStatistics>
value
- public Set<Map.Entry<Task,RiskItemStatistics>> entrySet()
Set
view of the mappings contained in this map.entrySet
in interface Map<Task,RiskItemStatistics>
public RiskItemStatistics get(Object task)
RiskItemStatistics
class containing in this collection which is associated
with the specified Task object; null if the item is not found.get
in interface Map<Task,RiskItemStatistics>
task
- the specified instance of the Task
class.public boolean isEmpty()
isEmpty
in interface Map<Task,RiskItemStatistics>
public Iterator<RiskItemStatistics> iterator()
iterator
in interface Iterable<RiskItemStatistics>
public Set<Task> keySet()
Set
view of the keys contained in this map.keySet
in interface Map<Task,RiskItemStatistics>
public RiskItemStatistics put(Task key, RiskItemStatistics value)
put
in interface Map<Task,RiskItemStatistics>
key
- value
- public void putAll(Map<? extends Task,? extends RiskItemStatistics> m)
putAll
in interface Map<Task,RiskItemStatistics>
m
- public RiskItemStatistics remove(Object key)
remove
in interface Map<Task,RiskItemStatistics>
key
- public int size()
size
in interface Map<Task,RiskItemStatistics>
public Collection<RiskItemStatistics> values()
Collection
view of the values contained in this map.values
in interface Map<Task,RiskItemStatistics>