diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/helloworld/TestEntry.java	Sat Mar 21 11:00:06 2009 +0000
@@ -0,0 +1,24 @@
+package helloworld;
+
+import net.jini.core.entry.Entry;
+
+/**
+   Anything you wish to write to a JavaSpace must implement Entry.
+   Only fields which are declared public will be stored and these fields
+   should not be primitives such as int or long.  See the Entry specification
+   for full details.
+ */
+public class TestEntry implements Entry {
+    public String theValue;
+
+    public TestEntry() {
+    }
+
+    public TestEntry(String aValue) {
+        theValue = aValue;
+    }
+
+    public String toString() {
+        return "TestEntry: " + theValue;
+    }
+}