@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ClassId
Created by Xiaofei on 16/3/25.
Indicates the class id of the annotated class.
The data storage stores the objects according to their class ids and object ids.
Always, the class name can be used as the unique id of each class. However, before
an app is released, its source code is always be obfuscated, so the class name is
therefore also obfuscated and it may not be the same every time the app is released.
Objects thus cannot be stored and restored.
Therefore, an new technique should be applied to guarantee the objects stored in
earlier version can be restored in later version. This annotation indicates the class
id of the annotated class.
Distinct classes should have distinct class ids. If not, the behavior is unspecified.