Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/remote/perf/DummyEntry.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.perf; | |
2 | |
3 import net.jini.core.entry.*; | |
4 | |
5 public class DummyEntry implements Entry { | |
6 public String theName; | |
7 public String anotherField; | |
8 | |
9 public DummyEntry() { | |
10 } | |
11 | |
12 public DummyEntry(String aName) { | |
13 theName = aName; | |
14 } | |
15 | |
16 public String toString() { | |
17 return theName; | |
18 } | |
19 | |
20 public boolean equals(Object anObject) { | |
21 if ((anObject != null) && (anObject instanceof DummyEntry)) { | |
22 | |
23 DummyEntry myEntry = (DummyEntry) anObject; | |
24 | |
25 if (myEntry.theName == null) | |
26 return (myEntry.theName == theName); | |
27 else | |
28 return ((DummyEntry) anObject).theName.equals(theName); | |
29 } | |
30 | |
31 return false; | |
32 } | |
33 } |