Class NodeKey<K extends Comparable<K>>

java.lang.Object
org.jfree.data.flow.NodeKey<K>
Type Parameters:
K - the type for the keys used to identify sources and destinations (String is a good default choice).
All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable

public class NodeKey<K extends Comparable<K>> extends Object implements PublicCloneable, Serializable
A key that identifies a node in a FlowDataset. Instances of this class are immutable.
Since:
1.5.3
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The key for a node property that, if defined (at the dataset level), contains a Boolean value for the selection status of the node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeKey(int stage, K node)
    Creates a new key referencing a node in a FlowDataset.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a clone of the object.
    boolean
    Tests this instance for equality with an arbitrary object.
    Returns the identifier for the node.
    int
    Returns the stage number.
    int
    Returns a hashcode for this instance.
    Returns a string representation of this instance, primarily for debugging purposes.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • NodeKey

      public NodeKey(int stage, K node)
      Creates a new key referencing a node in a FlowDataset.
      Parameters:
      stage - the stage.
      node - the node key.
  • Method Details

    • getStage

      public int getStage()
      Returns the stage number.
      Returns:
      The stage number.
    • getNode

      public K getNode()
      Returns the identifier for the node.
      Returns:
      The identifier for the node (never null).
    • toString

      public String toString()
      Returns a string representation of this instance, primarily for debugging purposes.
      Overrides:
      toString in class Object
      Returns:
      A string.
    • equals

      public boolean equals(Object obj)
      Tests this instance for equality with an arbitrary object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hashcode for this instance.
      Overrides:
      hashCode in class Object
      Returns:
      A hashcode.
    • clone

      Description copied from interface: PublicCloneable
      Returns a clone of the object.
      Specified by:
      clone in interface PublicCloneable
      Overrides:
      clone in class Object
      Returns:
      A clone.
      Throws:
      CloneNotSupportedException - if cloning is not supported for some reason.