org.jfree.chart
Class HashUtilities
java.lang.Object
org.jfree.chart.HashUtilities
Some utility methods for calculating hash codes.
static int | hashCode(int pre, Comparable c) - Returns a hash value based on a seed value and a
Comparable
instance.
|
static int | hashCode(int pre, Paint p) - Returns a hash value based on a seed value and a paint instance.
|
static int | hashCode(int pre, String s) - Returns a hash value based on a seed value and a string instance.
|
static int | hashCode(int pre, Stroke s) - Returns a hash value based on a seed value and a stroke instance.
|
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, double d) - Returns a hash value based on a seed value and the value of a double
primitive.
|
static int | hashCodeForDoubleArray(double[] a) - Returns a hash code for a
double[] instance.
|
static int | hashCodeForPaint(Paint p) - Returns a hash code for a
Paint instance.
|
hashCode
public static int hashCode(int pre,
Comparable c)
Returns a hash value based on a seed value and a Comparable
instance.
pre
- the seed value.c
- the comparable (null
permitted).
hashCode
public static int hashCode(int pre,
Paint p)
Returns a hash value based on a seed value and a paint instance.
pre
- the seed value.p
- the paint (null
permitted).
hashCode
public static int hashCode(int pre,
String s)
Returns a hash value based on a seed value and a string instance.
pre
- the seed value.s
- the string (null
permitted).
hashCode
public static int hashCode(int pre,
Stroke s)
Returns a hash value based on a seed value and a stroke instance.
pre
- the seed value.s
- the stroke (null
permitted).
hashCode
public static int hashCode(int pre,
boolean b)
Returns a hash value based on a seed value and the value of a boolean
primitive.
pre
- the seed value.b
- the boolean value.
hashCode
public static int hashCode(int pre,
double d)
Returns a hash value based on a seed value and the value of a double
primitive.
pre
- the seed value.d
- the double value.
hashCodeForDoubleArray
public static int hashCodeForDoubleArray(double[] a)
Returns a hash code for a double[]
instance. If the array
is null
, this method returns zero.
a
- the array (null
permitted).
hashCodeForPaint
public static int hashCodeForPaint(Paint p)
Returns a hash code for a Paint
instance. If
p
is null
, this method returns zero.
p
- the paint (null
permitted).