Class IdStrategy

java.lang.Object
io.protostuff.runtime.IdStrategy
Direct Known Subclasses:
DefaultIdStrategy, NumericIdStrategy

public abstract class IdStrategy extends Object
This base class handles all the IO for reading and writing polymorphic fields. When a field's type is polymorphic/dynamic (e.g interface/abstract/object), the type (id) needs to be written (ahead) before its value/content to be able to deserialize it correctly.

The underlying impl will determine how the type (id) should be written.

An IdStrategy is standalone if the primaryGroup is not set.