Class LabeledIntHierarchyMap.HierarchyNode
java.lang.Object
it.univr.di.labeledvalue.LabeledIntHierarchyMap.HierarchyNode
- All Implemented Interfaces:
it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>
,Serializable
,Comparable<LabeledIntHierarchyMap.HierarchyNode>
,Map.Entry<Label,
Integer>
- Enclosing class:
LabeledIntHierarchyMap
static class LabeledIntHierarchyMap.HierarchyNode
extends Object
implements it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>, Comparable<LabeledIntHierarchyMap.HierarchyNode>, Serializable
Simple class to represent a labeled value in the hierarchy.
- Version:
- $Rev: 851 $
- Author:
- posenato
-
Field Summary
Modifier and TypeFieldDescription(package private) it.unimi.dsi.fastutil.objects.ObjectArraySet
<LabeledIntHierarchyMap.HierarchyNode> Labeled values subsumed by this.(package private) Label
(package private) it.unimi.dsi.fastutil.objects.ObjectArraySet
<LabeledIntHierarchyMap.HierarchyNode> Labeled values that subsume this.(package private) int
(package private) int
To manage visit -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2IntMap.Entry
getValue, setValue
-
Field Details
-
father
it.unimi.dsi.fastutil.objects.ObjectArraySet<LabeledIntHierarchyMap.HierarchyNode> fatherLabeled values subsumed by this. -
label
Label label -
son
it.unimi.dsi.fastutil.objects.ObjectArraySet<LabeledIntHierarchyMap.HierarchyNode> sonLabeled values that subsume this. -
value
int value -
visit
int visitTo manage visit
-
-
Constructor Details
-
HierarchyNode
HierarchyNode(Label l, int v) - Parameters:
l
- the input labelv
- the input value
-
-
Method Details
-
clear
public void clear()Clear all internal objects making them empty. -
compareTo
* In order to minimize the number of insertions, it is better to have sons ordered in inverted lexicographical order.- Specified by:
compareTo
in interfaceComparable<LabeledIntHierarchyMap.HierarchyNode>
-
equals
-
getIntValue
public int getIntValue()- Specified by:
getIntValue
in interfaceit.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>
-
getKey
-
hashCode
-
setValue
public int setValue(int value1) - Specified by:
setValue
in interfaceit.unimi.dsi.fastutil.objects.Object2IntMap.Entry<Label>
-
toString
-