Package org.jfree.data.flow
Class FlowKey<K extends java.lang.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 (Stringis a good default choice).
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,PublicCloneable
public class FlowKey<K extends java.lang.Comparable<K>> extends java.lang.Object implements PublicCloneable, java.io.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 private Kdestinationstatic java.lang.StringSELECTED_PROPERTY_KEYThe key for a flow property that, if defined (at the dataset level), contains aBooleanvalue for the selection status of the flow.private Ksourceprivate intstageThe stage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a clone of the object.booleanequals(java.lang.Object obj)Tests this instance for equality with an arbitrary object.KgetDestination()Returns the destination identifier.KgetSource()Returns the source identifier.intgetStage()Returns the stage number for the flow.inthashCode()Returns a hashcode for this instance.java.lang.StringtoString()Returns a string representation of this instance, primarily for debugging purposes.
-
-
-
Field Detail
-
SELECTED_PROPERTY_KEY
public static final java.lang.String SELECTED_PROPERTY_KEY
The key for a flow property that, if defined (at the dataset level), contains aBooleanvalue for the selection status of the flow.- See Also:
- Constant Field Values
-
stage
private final int stage
The stage.
-
-
Method Detail
-
getStage
public int getStage()
Returns the stage number for the flow.- Returns:
- The stage number.
-
getSource
public K getSource()
Returns the source identifier.- Returns:
- The source identifier (never
null).
-
getDestination
public K getDestination()
Returns the destination identifier.- Returns:
- The destination identifier (never
null).
-
toString
public java.lang.String toString()
Returns a string representation of this instance, primarily for debugging purposes.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string.
-
equals
public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hashcode for this instance.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hashcode.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDescription copied from interface:PublicCloneableReturns a clone of the object.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classjava.lang.Object- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException- if cloning is not supported for some reason.
-
-