- java.lang.Object
-
- org.jfree.data.flow.NodeKey<K>
-
- Type Parameters:
K- the type for the keys used to identify sources and destinations (Stringis 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 aFlowDataset. Instances of this class are immutable.- Since:
- 1.5.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSELECTED_PROPERTY_KEYThe key for a node property that, if defined (at the dataset level), contains aBooleanvalue 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 aFlowDataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone of the object.booleanequals(Object obj)Tests this instance for equality with an arbitrary object.KgetNode()Returns the identifier for the node.intgetStage()Returns the stage number.inthashCode()Returns a hashcode for this instance.StringtoString()Returns a string representation of this instance, primarily for debugging purposes.
-
-
-
Field Detail
-
SELECTED_PROPERTY_KEY
public static final String SELECTED_PROPERTY_KEY
The key for a node property that, if defined (at the dataset level), contains aBooleanvalue for the selection status of the node.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeKey
public NodeKey(int stage, K node)
Creates a new key referencing a node in aFlowDataset.- Parameters:
stage- the stage.node- the node key.
-
-
Method Detail
-
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.
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
-
hashCode
public int hashCode()
Returns a hashcode for this instance.
-
clone
public Object clone() throws CloneNotSupportedException
Description copied from interface:PublicCloneableReturns a clone of the object.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if cloning is not supported for some reason.
-
-