comparison src/org/dancres/blitz/notify/SpaceNotifyUID.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.notify;
2
3 import org.dancres.blitz.oid.OID;
4
5 import org.dancres.blitz.lease.SpaceUID;
6
7 /**
8 Opaque space-level unique identifier for an Notify. <P>
9
10 This will be the cookie we place inside a lease. We should make this
11 cookie responsible for doing a renew. i.e. put the renew code in here. <P>
12 */
13 final class SpaceNotifyUID implements SpaceUID {
14 private OID theOID;
15
16 SpaceNotifyUID(OID aOID) {
17 theOID = aOID;
18 }
19
20 public boolean equals(Object anObject) {
21 if (anObject instanceof SpaceNotifyUID) {
22 SpaceNotifyUID myUID = (SpaceNotifyUID) anObject;
23
24 return (theOID.equals(myUID.theOID));
25 }
26
27 return false;
28 }
29
30 OID getOID() {
31 return theOID;
32 }
33
34 public int hashCode() {
35 return theOID.hashCode();
36 }
37
38 public String toString() {
39 return "N" + theOID;
40 }
41 }