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: 993 $
- Author:
- posenato
-
Nested Class Summary
Nested classes/interfaces inherited from interface LabeledIntMap
LabeledIntMap.LabeledIntMapViewModifier and TypeInterfaceDescriptionstatic interfaceA read-only view of an object -
Field Summary
Fields inherited from interface LabeledIntMap
entryComparator, serialVersionUIDModifier and TypeFieldDescriptionstatic final Comparator<it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>> A natural comparator for Entry<Label>.static final longSerial UID -
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 LabeledIntMap
alreadyRepresents, entrySet, get, getMaxValue, getMaxValueSubsumedBy, getMinLabeledValue, getMinValue, getMinValueAmongLabelsWOUnknown, getMinValueConsistentWith, getMinValueSubsumedBy, isEmpty, keySet, newInstance, newInstance, newInstance, newInstance, putForcibly, size, unmodifiable, valuesModifier and TypeMethodDescriptionbooleanalreadyRepresents(Label newLabel, int newValue) it.unimi.dsi.fastutil.objects.ObjectSet<it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>> entrySet()The set of all map entries.intdefault intdefault intReturns the value associated with thelif it exists, otherwise the maximal value among all labels consistent withl.default it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label> default intdefault intdefault intReturns the value associated with thelif it exists, otherwise the minimal value among all labels consistent withl.default intReturns the minimal value among those associated with labels subsumed bylif it exists,Constants.INT_NULLotherwise.booleanisEmpty()it.unimi.dsi.fastutil.objects.ObjectSet<Label> keySet()A copy of all labels in the map.FactorynewInstance(boolean optimize) FactorynewInstance(LabeledIntMap lim) FactorynewInstance(LabeledIntMap lim, boolean optimize) FactoryvoidputForcibly(Label l, int i) Put the labeled value without any control.intsize()it.unimi.dsi.fastutil.ints.IntSetvalues()
-
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.
-