Class Priority


  • public final class Priority
    extends NativeObjectContainer
    Is a map to apply a different priority to sankey node, priority used to layout calculation.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • Priority

        public Priority()
        Creates the object with an empty native object instance.
    • Method Detail

      • isConsistent

        public final boolean isConsistent()
        Returns true if there is at least a key, stored in the map.
        Returns:
        true if there is at least a key, stored in the map
      • set

        public final void set​(String nodeKey,
                              int value)
        Sets a value in the map, by its key of the node.
        Parameters:
        nodeKey - the key of sankey node
        value - the value to assign to the node.
      • set

        public final void set​(Key nodeKey,
                              int value)
        Sets a value in the map, by its key of the node.
        Parameters:
        nodeKey - the key of sankey node
        value - the value to assign to the node.
      • get

        public final int get​(String nodeKey)
        Returns the stored value in the map, by its key of the node.
        Parameters:
        nodeKey - the key of sankey node
        Returns:
        the value to assign to the node.
      • get

        public final int get​(Key nodeKey)
        Returns the stored value in the map, by its key of the node.
        Parameters:
        nodeKey - the key of sankey node
        Returns:
        the value to assign to the node.