|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.util.HashcodeUtil
public final class HashcodeUtil
Title: IJChart
Description: a chart library for the Java(tm) platform.
A util class for calculate the hashcode of a object.Copyright: Copyright (c) 2013
Company:
Method Summary | |
---|---|
static int |
hashCode(boolean b)
Returns a hashcode for a boolean value,true 1 otherwise 0. |
static int |
hashCode(java.awt.Image image)
Returns a hashcode for an image,if the image is null return 0 otherwise return image.width*image.height. |
static int |
hashCode(java.lang.Object object)
Returns a hash code for an object, or zero if the object is null. |
static int |
hashCode(java.lang.Object[] object)
Returns a hash code for an array, or zero if the object is null. |
static int |
hashCode(java.awt.Paint paint)
Returns a hash code for a Paint instance.If p is null, this method returns zero. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int hashCode(java.lang.Object object)
object
- Object
The object (null permitted).
public static int hashCode(java.lang.Object[] object)
object
- Object
The object (null permitted).
public static int hashCode(java.awt.Image image)
image
- Image
The Image object.
public static int hashCode(boolean b)
b
- boolean
The boolean value.
public static int hashCode(java.awt.Paint paint)
paint
- Paint
The paint (null permitted).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |