Class LabeledIntTreeSimpleMap
java.lang.Object
it.univr.di.labeledvalue.AbstractLabeledIntMap
it.univr.di.labeledvalue.LabeledIntTreeMap
it.univr.di.labeledvalue.LabeledIntTreeSimpleMap
- All Implemented Interfaces:
LabeledIntMap, Serializable
Extends LabeledIntTreeMap, setting optimize field to false.
In this way, labeled values where labels are not shortened.
This class is useful for the OSTNUPluggableEdge class.
In this way, labeled values where labels are not shortened.
This class is useful for the OSTNUPluggableEdge class.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class LabeledIntTreeMap
LabeledIntTreeMap.LabeledIntTreeMapViewModifier and TypeClassDescriptionstatic classA read-only view of an objectNested classes/interfaces inherited from interface LabeledIntMap
LabeledIntMap.LabeledIntMapViewModifier and TypeInterfaceDescriptionstatic interfaceA read-only view of an object -
Field Summary
Fields inherited from class LabeledIntTreeMap
base, mainInt2SetMapModifier and TypeFieldDescription(package private) char[]A set of propositions forming a base for the labels of the map.(package private) it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap<it.unimi.dsi.fastutil.objects.Object2IntMap<Label>> Design choice: the set of labeled values of this map is organized as a collection of sets, each containing labels of the same length.Fields inherited from class AbstractLabeledIntMap
count, labeledValueRE, labeledValueSetREPattern, optimize, splitterEntryPattern, splitterPair, valueRE, valueREPatternModifier and TypeFieldDescription(package private) intThe number of elements in the map(package private) static final StringA labeled value as a regular expression.(package private) static final PatternMatcher for a set of labeled values.(package private) booleanOptimize.(package private) static final PatternPattern for splitting a set of labeled values.(package private) static final Pattern(package private) static final StringAdmissible values as a regular expression.(package private) static final PatternPattern of valueREStringFields inherited from interface LabeledIntMap
entryComparatorModifier and TypeFieldDescriptionstatic final Comparator<it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>> A natural comparator for Entry<Label>. -
Constructor Summary
ConstructorsConstructorDescriptionNecessary constructor for the factory.LabeledIntTreeSimpleMap(boolean ignoredOptimize) Necessary constructor for the factory.LabeledIntTreeSimpleMap(LabeledIntMap lvm, boolean ignoredOptimize) Constructor to clone the structure. -
Method Summary
Modifier and TypeMethodDescriptionFactorynewInstance(boolean optimize1) FactorynewInstance(LabeledIntMap lim) FactorynewInstance(LabeledIntMap lim, boolean optimize1) FactoryMethods inherited from class LabeledIntTreeMap
alreadyRepresents, clear, entrySet, get, getMaxValue, getMinValue, getMinValueSubsumedBy, keySet, put, putForcibly, remove, unmodifiable, valuesModifier and TypeMethodDescriptionfinal booleanalreadyRepresents(Label newLabel, int newValue) voidclear()Remove all entries from the map.final it.unimi.dsi.fastutil.objects.ObjectSet<it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>> entrySet()The set of all map entries.final intintintintReturns the minimal value among those associated with labels subsumed bylif it exists,Constants.INT_NULLotherwise.final it.unimi.dsi.fastutil.objects.ObjectSet<Label> keySet()A copy of all labels in the map.final booleanPut a label with valueiif labellis not null and there is no labeled value in the set with labell, or it is present but with a value higher thanl.voidputForcibly(Label l, int i) Put the labeled value without any control.final intRemove the labellfrom the map.it.unimi.dsi.fastutil.ints.IntSetvalues()Methods inherited from class AbstractLabeledIntMap
entryAsString, entryAsString, equals, hashCode, isEmpty, parse, parse, size, toStringModifier and TypeMethodDescription(package private) static StringentryAsString(it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label> entry) static StringentryAsString(Label label, int value) final booleanfinal inthashCode()booleanisEmpty()static LabeledIntMapstatic LabeledIntMapparse(String inputMap, Class<? extends LabeledIntMap> labeledIntMapClass) Parse a string representing a LabeledValueTreeMap and return an object containing the labeled values represented by the string.intsize()final StringtoString()Methods inherited from interface LabeledIntMap
getMaxValueSubsumedBy, getMinLabeledValue, getMinValueAmongLabelsWOUnknown, getMinValueConsistentWith, putAllModifier and TypeMethodDescriptiondefault 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 intReturns the value associated with thelif it exists, otherwise the minimal value among all labels consistent withl.default voidputAll(LabeledIntMap inputMap) Put all elements of `inputMap` into the current one without making a defensive copy.
-
Constructor Details
-
LabeledIntTreeSimpleMap
LabeledIntTreeSimpleMap(LabeledIntMap lvm, boolean ignoredOptimize) Constructor to clone the structure. For optimization issues, this method clones only the LabeledIntTreeMap object.- Parameters:
lvm- the LabeledValueTreeMap to clone. If LVM is null, this will be an empty map.ignoredOptimize- ignored.- See Also:
-
LabeledIntTreeSimpleMap
LabeledIntTreeSimpleMap(boolean ignoredOptimize) Necessary constructor for the factory. The internal structure is built and empty.- Parameters:
ignoredOptimize- ignored- See Also:
-
LabeledIntTreeSimpleMap
LabeledIntTreeSimpleMap()Necessary constructor for the factory. The internal structure is built and empty.
-
-
Method Details
-
newInstance
Description copied from interface:LabeledIntMapFactory- Specified by:
newInstancein interfaceLabeledIntMap- Overrides:
newInstancein classLabeledIntTreeMap- Returns:
- an object of type LabeledIntMap.
-
newInstance
Description copied from interface:LabeledIntMapFactory- Specified by:
newInstancein interfaceLabeledIntMap- Overrides:
newInstancein classLabeledIntTreeMap- Parameters:
optimize1- ignored- Returns:
- a new instance
-
newInstance
Description copied from interface:LabeledIntMapFactory- Specified by:
newInstancein interfaceLabeledIntMap- Overrides:
newInstancein classLabeledIntTreeMap- Parameters:
lim- a map to clone.- Returns:
- an object of type LabeledIntMap.
-
newInstance
Description copied from interface:LabeledIntMapFactory- Specified by:
newInstancein interfaceLabeledIntMap- Overrides:
newInstancein classLabeledIntTreeMap- Parameters:
lim- an object to clone.optimize1- ignored- Returns:
- a new instance
-