FileDocCategorySizeDatePackage
CategoryKey.javaAPI DocApache log4j 1.2.151436Sat Aug 25 00:09:42 BST 2007org.apache.log4j

CategoryKey

public class CategoryKey extends Object
CategoryKey is a wrapper for String that apparently accellerated hash table lookup in early JVM's.
author
Ceki Gülcü

Fields Summary
String
name
int
hashCache
Constructors Summary
CategoryKey(String name)

    this.name = name;
    hashCache = name.hashCode();
  
Methods Summary
public final booleanequals(java.lang.Object rArg)

    if(this == rArg)
      return true;
    
    if(rArg != null && CategoryKey.class == rArg.getClass()) 
      return  name.equals(((CategoryKey)rArg ).name);
    else 
      return false;
  
public final inthashCode()

    return hashCache;