00001 #ifndef HashKey_seen 00002 #define HashKey_seen 00003 00004 namespace jcpp { 00005 00006 class HashKey :public virtual Object { 00007 private: 00008 static const long magic = 1103515245; 00009 public: 00010 virtual ~HashKey() {} 00011 virtual int hashValue() { return (((long) (this))*magic); }; 00012 virtual boolean equals(Object* obj) {return obj == this; }; 00013 00014 }; 00015 00016 } ENDSEMI //jcpp 00017 00018 #endif