Class LabeledIntTreeMap.LabeledIntTreeMapView
java.lang.Object
it.univr.di.labeledvalue.AbstractLabeledIntMap
it.univr.di.labeledvalue.LabeledIntTreeMap
it.univr.di.labeledvalue.LabeledIntTreeMap.LabeledIntTreeMapView
- All Implemented Interfaces:
LabeledIntMap, LabeledIntMap.LabeledIntMapView, Serializable
- Enclosing class:
LabeledIntTreeMap
public static class LabeledIntTreeMap.LabeledIntTreeMapView
extends LabeledIntTreeMap
implements LabeledIntMap.LabeledIntMapView
A read-only view of an object
- Version:
- $Rev: 1153 $
- Author:
- posenato
- 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
Constructors -
Method Summary
Methods inherited from class LabeledIntTreeMap
alreadyRepresents, clear, entrySet, get, getMaxValue, getMinValue, getMinValueSubsumedBy, keySet, newInstance, newInstance, newInstance, newInstance, put, 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.FactorynewInstance(boolean optimize1) FactorynewInstance(LabeledIntMap lim) FactorynewInstance(LabeledIntMap lim, boolean optimize1) Factoryfinal 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.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, getMinValueConsistentWithModifier 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.Methods inherited from interface LabeledIntMap.LabeledIntMapView
clear, put, putAll, removeModifier 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.
-
Constructor Details
-
LabeledIntTreeMapView
- Parameters:
inputMap- input
-
-
Method Details
-
putForcibly
Object Read-only. It does nothing.- Specified by:
putForciblyin interfaceLabeledIntMap- Overrides:
putForciblyin classLabeledIntTreeMap- Parameters:
l- aLabelobject.i- the new value. If it is Constants#INT_NULL, the method does nothing.
-