Class LabeledIntHierarchyMap.LabeledIntHierarchyMapView
java.lang.Object
it.univr.di.labeledvalue.AbstractLabeledIntMap
it.univr.di.labeledvalue.LabeledIntHierarchyMap
it.univr.di.labeledvalue.LabeledIntHierarchyMap.LabeledIntHierarchyMapView
- All Implemented Interfaces:
LabeledIntMap, LabeledIntMap.LabeledIntMapView, Serializable
- Enclosing class:
LabeledIntHierarchyMap
public static class LabeledIntHierarchyMap.LabeledIntHierarchyMapView
extends LabeledIntHierarchyMap
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 LabeledIntHierarchyMap
LabeledIntHierarchyMap.HierarchyNode, LabeledIntHierarchyMap.LabeledIntHierarchyMapViewModifier and TypeClassDescription(package private) static classSimple class to represent a labeled value in the hierarchy.static 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 LabeledIntHierarchyMap
root, wellFormatCheckModifier and TypeFieldDescription(package private) LabeledIntHierarchyMap.HierarchyNodeRoot of hierarchybooleanJust to force the control that, after each put, the format of hierarchy is still valid.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 LabeledIntHierarchyMap
alreadyRepresents, clear, entrySet, get, getMinValueConsistentWith, getMinValueSubsumedBy, keySet, main, newInstance, newInstance, newInstance, newInstance, put, putForcibly, remove, size, unmodifiable, valuesModifier and TypeMethodDescriptionbooleanalreadyRepresents(Label newLabel, int newValue) final 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.intfinal intReturns the value associated with thelif it exists, otherwise the minimal value among all labels consistent withl.intReturns the minimal value among those associated with labels subsumed bylif it exists,Constants.INT_NULLotherwise.it.unimi.dsi.fastutil.objects.ObjectSet<Label> keySet()A copy of all labels in the map.static voidfinal LabeledIntHierarchyMapFactorynewInstance(boolean optimize1) Factoryfinal LabeledIntHierarchyMapnewInstance(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.voidputForcibly(Label l, int i) Put the labeled value without any control.final intRemove the labellfrom the map.final intsize()it.unimi.dsi.fastutil.ints.IntSetvalues()Methods inherited from class AbstractLabeledIntMap
entryAsString, entryAsString, equals, hashCode, isEmpty, parse, parse, 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.final StringtoString()Methods inherited from interface LabeledIntMap
getMaxValue, getMaxValueSubsumedBy, getMinLabeledValue, getMinValue, getMinValueAmongLabelsWOUnknownModifier and TypeMethodDescriptiondefault 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 intMethods 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
-
LabeledIntHierarchyMapView
- Parameters:
inputMap- the input map
-