BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xml.utils
Class StringKey

java.lang.Object
  |
  +--weblogic.apache.xml.utils.StringKey

public class StringKey
extends java.lang.Object

Simple class for fast lookup of string values, when used with hashtables. This class caches the hash value of the string.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
StringKey(java.lang.String key)
          Constructor StringKey
 
Method Summary
 boolean equals(java.lang.Object obj)
          Override of equals() for this object
 int hashCode()
          Get the hash value of the string
 java.lang.String toString()
          Return the value of the string key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringKey

public StringKey(java.lang.String key)
Constructor StringKey

Parameters:
key - String value to cache
Method Detail

hashCode

public int hashCode()
Get the hash value of the string

Returns:
hash value of the string
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object obj)
Override of equals() for this object

Parameters:
obj - to compare to
Returns:
True if this object equals this string value
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Return the value of the string key.

Returns:
a string representation of the object.
Overrides:
toString in class java.lang.Object

Documentation is available at
http://e-docs.bea.com/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.