Package org.jfree.data.flow
Class FlowKey<K extends Comparable<K>>
java.lang.Object
org.jfree.data.flow.FlowKey<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 FlowKey<K extends Comparable<K>> extends Object implements PublicCloneable, Serializable
A key that identifies a flow within a dataset.
- Since:
- 1.5.3
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static String
SELECTED_PROPERTY_KEY
The key for a flow property that, if defined (at the dataset level), contains aBoolean
value for the selection status of the flow. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Object
clone()
Returns a clone of the object.boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.K
getDestination()
Returns the destination identifier.K
getSource()
Returns the source identifier.int
getStage()
Returns the stage number for the flow.int
hashCode()
Returns a hashcode for this instance.String
toString()
Returns a string representation of this instance, primarily for debugging purposes.
-
Field Details
-
SELECTED_PROPERTY_KEY
The key for a flow property that, if defined (at the dataset level), contains aBoolean
value for the selection status of the flow.- See Also:
- Constant Field Values
-
-
Constructor Details
-
FlowKey
Creates a new instance.- Parameters:
stage
- the stage.source
- the source identifier (null
not permitted).destination
- the destination identifier (null
not permitted).
-
-
Method Details
-
getStage
Returns the stage number for the flow.- Returns:
- The stage number.
-
getSource
Returns the source identifier.- Returns:
- The source identifier (never
null
).
-
getDestination
Returns the destination identifier.- Returns:
- The destination identifier (never
null
).
-
toString
Returns a string representation of this instance, primarily for debugging purposes. -
equals
Tests this instance for equality with an arbitrary object. -
hashCode
Returns a hashcode for this instance. -
clone
Description copied from interface:PublicCloneable
Returns a clone of the object.- Specified by:
clone
in interfacePublicCloneable
- Overrides:
clone
in classObject
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- if cloning is not supported for some reason.
-