summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/info
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-01-22 02:50:57 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-01-22 02:50:57 +0000
commit19c941cc3f39d0a856311b323f8f28e5e07b0edc (patch)
tree67e8726c4c1c8cf3cc484ddc18c9e3b00f092529 /src/main/java/com/amazon/carbonado/info
parent61810baf638c3ba9564f01f6c80fc09d429a128d (diff)
OrderingList is now Serializable.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/info')
-rw-r--r--src/main/java/com/amazon/carbonado/info/OrderedProperty.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/info/OrderedProperty.java b/src/main/java/com/amazon/carbonado/info/OrderedProperty.java
index fe53c60..2e54e81 100644
--- a/src/main/java/com/amazon/carbonado/info/OrderedProperty.java
+++ b/src/main/java/com/amazon/carbonado/info/OrderedProperty.java
@@ -18,7 +18,11 @@
package com.amazon.carbonado.info;
+import java.io.Externalizable;
import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.io.Serializable;
import org.cojen.util.WeakCanonicalSet;
@@ -30,7 +34,9 @@ import com.amazon.carbonado.util.Appender;
*
* @author Brian S O'Neill
*/
-public class OrderedProperty<S extends Storable> implements Appender {
+public class OrderedProperty<S extends Storable> implements Serializable, Appender {
+ private static final long serialVersionUID = 1L;
+
static WeakCanonicalSet cCanonical = new WeakCanonicalSet();
/**
@@ -175,4 +181,8 @@ public class OrderedProperty<S extends Storable> implements Appender {
app.append(mDirection.toCharacter());
mProperty.appendTo(app);
}
+
+ private Object readResolve() {
+ return get(mProperty, mDirection);
+ }
}