Mercurial > hg > blitz_stable
comparison examples/helloworld/TestEntry.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 helloworld; | |
2 | |
3 import net.jini.core.entry.Entry; | |
4 | |
5 /** | |
6 Anything you wish to write to a JavaSpace must implement Entry. | |
7 Only fields which are declared public will be stored and these fields | |
8 should not be primitives such as int or long. See the Entry specification | |
9 for full details. | |
10 */ | |
11 public class TestEntry implements Entry { | |
12 public String theValue; | |
13 | |
14 public TestEntry() { | |
15 } | |
16 | |
17 public TestEntry(String aValue) { | |
18 theValue = aValue; | |
19 } | |
20 | |
21 public String toString() { | |
22 return "TestEntry: " + theValue; | |
23 } | |
24 } |