org.jfree.report
Class ReportBuilderHints.ParserHintKey

java.lang.Object
  extended byorg.jfree.report.ReportBuilderHints.ParserHintKey
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ReportBuilderHints

public static class ReportBuilderHints.ParserHintKey
extends java.lang.Object
implements java.io.Serializable

The parser hint key is a compound key to combine a string key name with an arbitary target object.

See Also:
Serialized Form

Constructor Summary
ReportBuilderHints.ParserHintKey(java.io.Serializable primaryKey, java.lang.String hintKey)
          Creates a new parser hint key for the given primary key and the given key name.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares whether this key points to the same object and refers to the same key name.
 java.lang.String getHintKey()
          Returns the hint name.
 java.lang.Object getPrimaryKey()
          Returns the primary key object for that hint key.
 int hashCode()
          Computes an hashcode for this key.
 java.lang.String toString()
          Prints this key as string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportBuilderHints.ParserHintKey

public ReportBuilderHints.ParserHintKey(java.io.Serializable primaryKey,
                                        java.lang.String hintKey)
Creates a new parser hint key for the given primary key and the given key name.

Parameters:
primaryKey - the target object for that a hint should be stored.
hintKey - the name of the hint.
Method Detail

getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns the primary key object for that hint key.

Returns:
the key object.

getHintKey

public java.lang.String getHintKey()
Returns the hint name.

Returns:
the name of the hint.

equals

public boolean equals(java.lang.Object o)
Compares whether this key points to the same object and refers to the same key name.

Parameters:
o - the object to compare
Returns:
true, if the given object is equal to this object.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Computes an hashcode for this key.

Returns:
the hashcode.
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Prints this key as string. This is a debug function, dont depend on it.

Returns:
the string representation of this object.
See Also:
Object.toString()