public class HashUtilities extends Object
Constructor and Description |
---|
HashUtilities() |
Modifier and Type | Method and Description |
---|---|
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,
org.jfree.util.BooleanList list)
Computes a hash code for a
BooleanList . |
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,
double d)
Returns a hash value based on a seed value and the value of a double
primitive.
|
static int |
hashCode(int pre,
int i)
Returns a hash value based on a seed value and the value of an int
primitive.
|
static int |
hashCode(int pre,
Object obj)
Returns a hash value based on a seed value and an
Object
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,
org.jfree.util.PaintList list)
Computes a hash code for a
PaintList . |
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,
org.jfree.util.StrokeList list)
Computes a hash code for a
StrokeList . |
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. |
public static int hashCodeForPaint(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, int i)
pre
- the seed value.i
- the int value.public static int hashCode(int pre, double d)
pre
- the seed value.d
- the double value.public static int hashCode(int pre, Paint p)
pre
- the seed value.p
- the paint (null
permitted).public static int hashCode(int pre, Stroke s)
pre
- the seed value.s
- the stroke (null
permitted).public static int hashCode(int pre, String s)
pre
- the seed value.s
- the string (null
permitted).public static int hashCode(int pre, Comparable c)
Comparable
instance.pre
- the seed value.c
- the comparable (null
permitted).public static int hashCode(int pre, Object obj)
Object
instance.pre
- the seed value.obj
- the object (null
permitted).public static int hashCode(int pre, org.jfree.util.BooleanList list)
BooleanList
. In the latest version
of JCommon, the BooleanList
class should implement the hashCode()
method correctly, but we compute it here anyway so that we can work with
older versions of JCommon (back to 1.0.0).pre
- the seed value.list
- the list (null
permitted).public static int hashCode(int pre, org.jfree.util.PaintList list)
PaintList
. In the latest version
of JCommon, the PaintList
class should implement the hashCode()
method correctly, but we compute it here anyway so that we can work with
older versions of JCommon (back to 1.0.0).pre
- the seed value.list
- the list (null
permitted).public static int hashCode(int pre, org.jfree.util.StrokeList list)
StrokeList
. In the latest version
of JCommon, the StrokeList
class should implement the hashCode()
method correctly, but we compute it here anyway so that we can work with
older versions of JCommon (back to 1.0.0).pre
- the seed value.list
- the list (null
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics