|
|||||||||
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.
计算hashcode的工具类.Copyright: Copyright (c) 2013
Company:
Method Summary | |
---|---|
static int |
hashCode(boolean b)
计算一个对象的hashcode值,b为真返回1否则返回0. |
static int |
hashCode(java.awt.Image image)
计算一个Image的hashcode值.如果图片是null,返回0,否则返回image.width*image.height. |
static int |
hashCode(java.lang.Object object)
计算一个对象的hashcode值,如果对象为null,返回0. |
static int |
hashCode(java.lang.Object[] object)
计算一个数组的hashcode值,如果对象为null,返回0. |
static int |
hashCode(java.awt.Paint paint)
计算Paint对象的hashcode值. |
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 要计算hashcode的对象 (可为null).
public static int hashCode(java.lang.Object[] object)
object
- Object 要计算hashcode的对象 (可为null).
public static int hashCode(java.awt.Image image)
image
- Image 要计算hashcode的Image (可为null).
public static int hashCode(boolean b)
b
- boolean 要计算hashcode的布尔值 (可为null).
public static int hashCode(java.awt.Paint paint)
paint
- Paint Paint对象 (可为null).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |