80 * @serial include
81 * @since 1.8
82 */
83 final class Ser implements Externalizable {
84
85 /**
86 * Serialization version.
87 */
88 private static final long serialVersionUID = -8885321777449118786L;
89
90 /** Type for ZoneRules. */
91 static final byte ZRULES = 1;
92 /** Type for ZoneOffsetTransition. */
93 static final byte ZOT = 2;
94 /** Type for ZoneOffsetTransitionRule. */
95 static final byte ZOTRULE = 3;
96
97 /** The type being serialized. */
98 private byte type;
99 /** The object being serialized. */
100 private Object object;
101
102 /**
103 * Constructor for deserialization.
104 */
105 public Ser() {
106 }
107
108 /**
109 * Creates an instance for serialization.
110 *
111 * @param type the type
112 * @param object the object
113 */
114 Ser(byte type, Object object) {
115 this.type = type;
116 this.object = object;
117 }
118
119 //-----------------------------------------------------------------------
|
80 * @serial include
81 * @since 1.8
82 */
83 final class Ser implements Externalizable {
84
85 /**
86 * Serialization version.
87 */
88 private static final long serialVersionUID = -8885321777449118786L;
89
90 /** Type for ZoneRules. */
91 static final byte ZRULES = 1;
92 /** Type for ZoneOffsetTransition. */
93 static final byte ZOT = 2;
94 /** Type for ZoneOffsetTransitionRule. */
95 static final byte ZOTRULE = 3;
96
97 /** The type being serialized. */
98 private byte type;
99 /** The object being serialized. */
100 @SuppressWarnings("serial") // Not statically typed as Serializable
101 private Object object;
102
103 /**
104 * Constructor for deserialization.
105 */
106 public Ser() {
107 }
108
109 /**
110 * Creates an instance for serialization.
111 *
112 * @param type the type
113 * @param object the object
114 */
115 Ser(byte type, Object object) {
116 this.type = type;
117 this.object = object;
118 }
119
120 //-----------------------------------------------------------------------
|