Purple Code

com.purpletech.util
Class Cache.StringKey

java.lang.Object
  |
  +--com.purpletech.util.Cache.StringKey
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Cache

public class Cache.StringKey
extends java.lang.Object
implements java.io.Serializable

A sample Primary Key class containing merely a string. This is silly, since you could just use String itself as your PK, but it demonstrates what's necessary.

See Also:
Serialized Form

Constructor Summary
Cache.StringKey(java.lang.String s)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache.StringKey

public Cache.StringKey(java.lang.String s)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Documentation generated March 5 2003