package it.univr.di.labeledvalue; import java.util.logging.Logger; import it.unimi.dsi.fastutil.ints.IntArraySet; import it.unimi.dsi.fastutil.ints.IntSet; import it.unimi.dsi.fastutil.objects.Object2IntMap; import it.unimi.dsi.fastutil.objects.Object2IntMap.Entry; import it.unimi.dsi.fastutil.objects.ObjectArraySet; import it.unimi.dsi.fastutil.objects.ObjectSet; /** * Simple implementation of {@link it.univr.di.labeledvalue.LabeledIntMap} interface. *

* When creating a object it is possible to specify if the labeled values represented into the map should be maintained to the minimal equivalent ones. * * @author Roberto Posenato * @see LabeledIntMap * @version $Id: $Id */ public class LabeledIntHierarchyMap extends AbstractLabeledIntMap { /** * A read-only view of an object * * @author posenato */ public static class LabeledIntHierarchyMapView extends LabeledIntHierarchyMap implements LabeledIntMapView { /** * */ private static final long serialVersionUID = 1L; /** * @param inputMap */ public LabeledIntHierarchyMapView(LabeledIntHierarchyMap inputMap) { this.root = inputMap.root; } } /** * Simple class to represent a labeled value in the hierarchy. * * @author posenato */ static class HierarchyNode implements Object2IntMap.Entry