FileDocCategorySizeDatePackage
CharKey.javaAPI DocJava SE 6 API1789Tue Jun 10 00:23:10 BST 2008com.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.

  
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;