|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jfree.chart.HashUtilities
Some utility methods for calculating hash codes.
| Constructor Summary | |
HashUtilities()
|
|
| Method Summary | |
static int |
hashCode(int pre,
boolean b)
Returns a hash value based on a seed value and the value of a boolean primitive. |
static int |
hashCode(int pre,
java.lang.Comparable c)
Returns a hash value based on a seed value and a Comparable
instance. |
static int |
hashCode(int pre,
double d)
Returns a hash value based on a seed value and the value of a double primitive. |
static int |
hashCode(int pre,
java.awt.Paint p)
Returns a hash value based on a seed value and a paint instance. |
static int |
hashCode(int pre,
java.lang.String s)
Returns a hash value based on a seed value and a string instance. |
static int |
hashCode(int pre,
java.awt.Stroke s)
Returns a hash value based on a seed value and a stroke instance. |
static int |
hashCodeForDoubleArray(double[] a)
Returns a hash code for a double[] instance. |
static int |
hashCodeForPaint(java.awt.Paint p)
Returns a hash code for a Paint instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashUtilities()
| Method Detail |
public static int hashCodeForPaint(java.awt.Paint p)
Paint instance. If
p is null, this method returns zero.
p - the paint (null permitted).
public static int hashCodeForDoubleArray(double[] a)
double[] instance. If the array
is null, this method returns zero.
a - the array (null permitted).
public static int hashCode(int pre,
boolean b)
pre - the seed value.b - the boolean value.
public static int hashCode(int pre,
double d)
pre - the seed value.d - the double value.
public static int hashCode(int pre,
java.awt.Paint p)
pre - the seed value.p - the paint (null permitted).
public static int hashCode(int pre,
java.awt.Stroke s)
pre - the seed value.s - the stroke (null permitted).
public static int hashCode(int pre,
java.lang.String s)
pre - the seed value.s - the string (null permitted).
public static int hashCode(int pre,
java.lang.Comparable c)
Comparable
instance.
pre - the seed value.c - the comparable (null permitted).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||