FileDocCategorySizeDatePackage
CharKey.javaAPI DocJava SE 5 API1837Fri Aug 26 14:56:04 BST 2005com.sun.org.apache.xml.internal.utils

CharKey

public class CharKey extends Object
Simple class for fast lookup of char values, when used with hashtables. You can set the char, then use it as a key.
xsl.usage
internal

Fields Summary
private char
m_char
String value
Constructors Summary
public CharKey(char key)
Constructor CharKey

param
key char value of this object.

    m_char = key;
  
public CharKey()
Default constructor for a CharKey.

param
key char value of this object.

  
Methods Summary
public final booleanequals(java.lang.Object obj)
Override of equals() for this object

param
obj to compare to
return
True if this object equals this string value

    return ((CharKey)obj).m_char == m_char;
  
public final inthashCode()
Get the hash value of the character.

return
hash value of the character.

    return (int)m_char;
  
public final voidsetChar(char c)
Get the hash value of the character.

return
hash value of the character.

    m_char = c;