Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/remote/view/EntryViewUID.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.remote.view; | |
2 | |
3 import net.jini.id.Uuid; | |
4 | |
5 import org.dancres.blitz.lease.SpaceUID; | |
6 | |
7 public class EntryViewUID implements SpaceUID { | |
8 private Uuid theViewId; | |
9 | |
10 EntryViewUID(Uuid aUuid) { | |
11 theViewId = aUuid; | |
12 } | |
13 | |
14 public boolean equals(Object anObject) { | |
15 if (anObject instanceof EntryViewUID) { | |
16 EntryViewUID myOther = (EntryViewUID) anObject; | |
17 | |
18 return (myOther.theViewId.equals(theViewId)); | |
19 } | |
20 | |
21 return false; | |
22 } | |
23 | |
24 public int hashCode() { | |
25 return theViewId.hashCode(); | |
26 } | |
27 | |
28 Uuid getViewId() { | |
29 return theViewId; | |
30 } | |
31 } |