Interface LabeledIntMap.LabeledIntMapView
- All Superinterfaces:
LabeledIntMap
,Serializable
- All Known Implementing Classes:
LabeledIntHierarchyMap.LabeledIntHierarchyMapView
,LabeledIntSimpleMap.LabeledIntNotMinMapView
,LabeledIntTreeMap.LabeledIntTreeMapView
- Enclosing interface:
LabeledIntMap
A read-only view of an object
- Version:
- $Rev: 851 $
- Author:
- posenato
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.univr.di.labeledvalue.LabeledIntMap
LabeledIntMap.LabeledIntMapView
-
Field Summary
Fields inherited from interface it.univr.di.labeledvalue.LabeledIntMap
entryComparator, serialVersionUID
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
clear()
Remove all entries of the map.default boolean
Object Read-only.default void
putAll
(LabeledIntMap inputMap) Put all elements of inputMap into the current one without making a defensive copy.default int
Remove the labell
from the map.Methods inherited from interface it.univr.di.labeledvalue.LabeledIntMap
alreadyRepresents, entrySet, get, getMaxValue, getMaxValueSubsumedBy, getMinLabeledValue, getMinValue, getMinValueAmongLabelsWOUnknown, getMinValueConsistentWith, getMinValueSubsumedBy, isEmpty, keySet, newInstance, newInstance, newInstance, newInstance, putForcibly, size, unmodifiable, values
-
Method Details
-
clear
default void clear()Description copied from interface:LabeledIntMap
Remove all entries of the map.- Specified by:
clear
in interfaceLabeledIntMap
- See Also:
-
put
Object Read-only. It does nothing.- Specified by:
put
in interfaceLabeledIntMap
- Parameters:
l
- a not null label.i
- a notConstants.INT_NULL
value.- Returns:
- true if
(l,i)
has been inserted. Since an insertion can remove more than one redundant labeled values, it is nonsensical to return "the old value" as expected from a classical put method.
-
putAll
Description copied from interface:LabeledIntMap
Put all elements of inputMap into the current one without making a defensive copy.- Specified by:
putAll
in interfaceLabeledIntMap
- Parameters:
inputMap
- an object.- See Also:
-
remove
Description copied from interface:LabeledIntMap
Remove the labell
from the map. If thel
is not present, it does nothing.- Specified by:
remove
in interfaceLabeledIntMap
- Parameters:
l
- a not null label.- Returns:
- the previous value associated with
l
, orConstants.INT_NULL
if there was no mapping forl
.
-