- All Implemented Interfaces:
- Externalizable, Serializable, ValueHolderIF
- Direct Known Subclasses:
- DeltaValueHolder
public class ValueHolder
extends BaseValueHolder
implements Externalizable
Implements Externalizable which in turn implements java.io.Serializable.
This does not simply implement java.io.Serializable because that only serializes
fields defined here, but not in the superclass because the superclass is not java.io.Serializable.
The superclass BaseValueHolder is not serializable intentionally so we can test pdx classes
which also inherit from BaseValueHolder; we want pdx classes to be only serializable via pdx
and no other way for more thorough test coverage. But we want the fields inherited from
BaseValueHolder to be serialized thus we implement Externalizable which requires us to also
implement readExternal and writeExternal so we can serialize inherited fields.
- See Also:
- Serialized Form