APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class CharKey

extends Object
Class Inheritance

Simple class for fast lookup of char values, when used with hashtables. You can set the char, then use it as a key.

Field Summary

Modifier and TypeField and Description
private char
m_char

String value

Constructor Summary

AccessConstructor and Description
public
CharKey(char
char value of this object.
key
)

Constructor CharKey

public
CharKey()

Default constructor for a CharKey.

Method Summary

Modifier and TypeMethod and Description
public final boolean

Returns:

True if this object equals this string value
equals
(Object
to compare to
obj
)

Overrides java.lang.Object.equals.

Override of equals() for this object

public final int

Returns:

hash value of the character.
hashCode
()

Overrides java.lang.Object.hashCode.

Get the hash value of the character.

public final void

Returns:

hash value of the character.
setChar
(char c)

Get the hash value of the character.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

m_charback to summary
private char m_char

String value

Constructor Detail

CharKeyback to summary
public CharKey(char key)

Constructor CharKey

Parameters
key:char

char value of this object.

CharKeyback to summary
public CharKey()

Default constructor for a CharKey.

Method Detail

equalsback to summary
public final boolean equals(Object obj)

Overrides java.lang.Object.equals.

Override of equals() for this object

Parameters
obj:Object

to compare to

Returns:boolean

True if this object equals this string value

hashCodeback to summary
public final int hashCode()

Overrides java.lang.Object.hashCode.

Get the hash value of the character.

Returns:int

hash value of the character.

setCharback to summary
public final void setChar(char c)

Get the hash value of the character.

Returns:void

hash value of the character.