Package it.univr.di.labeledvalue
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
- 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 voidclear()Remove all entries from the map.default booleanObject Read-only.default voidputAll(LabeledIntMap inputMap) Put all elements of `inputMap` into the current one without making a defensive copy.default intRemove the labellfrom 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:LabeledIntMapRemove all entries from the map.- Specified by:
clearin interfaceLabeledIntMap- See Also:
-
put
Object Read-only. It does nothing.- Specified by:
putin interfaceLabeledIntMap- Parameters:
l- a non-null label.i- a notConstants.INT_NULLvalue.- Returns:
- true if
(l,i)has been inserted. Since an insertion can remove more than one redundant labeled value, it is nonsensical to return "the old value" as expected from a classical put method.
-
putAll
Description copied from interface:LabeledIntMapPut all elements of `inputMap` into the current one without making a defensive copy.- Specified by:
putAllin interfaceLabeledIntMap- Parameters:
inputMap- an object.- See Also:
-
remove
Description copied from interface:LabeledIntMapRemove the labellfrom the map. If thelis not present, it does nothing.- Specified by:
removein interfaceLabeledIntMap- Parameters:
l- a non-null label.- Returns:
- the previous value associated with
l, orConstants.INT_NULLif there was no mapping forl.
-