Sequenceablepublic class ComponentSaveState extends AbsComponentSaveState
If a component needs to save a specific state, it must inherit this class.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<ComponentSaveState> |
PRODUCER |
Creates a
ComponentSaveState instance based on a Parcel object. |
EMPTY_STATE| 构造器 | 说明 |
|---|---|
ComponentSaveState(Parcel in) |
Constructor used to create a
ComponentSaveState instance based on a Parcel object. |
ComponentSaveState(Parcel in,
ClassLoader classLoader) |
Constructor used to create a
ComponentSaveState instance based on Parcel
and ClassLoader objects. |
ComponentSaveState(Sequenceable superState) |
Constructor used to create a
ComponentSaveState instance based on the superState. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
marshalling(Parcel parcel) |
Marshals this
Sequenceable object into a Parcel. |
getSuperState, unmarshallingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<ComponentSaveState> PRODUCER
ComponentSaveState instance based on a Parcel object.public ComponentSaveState(Sequenceable superState)
ComponentSaveState instance based on the superState.
This method is called by a derived class.superState - Indicates the state of the superclass of this component.public ComponentSaveState(Parcel in)
ComponentSaveState instance based on a Parcel object.in - Indicates the Parcel object from which the component reads data.public ComponentSaveState(Parcel in, ClassLoader classLoader)
ComponentSaveState instance based on Parcel
and ClassLoader objects.in - Indicates the Parcel object from which the component reads data.classLoader - Indicates the ClassLoader object to use.public boolean marshalling(Parcel parcel)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceablemarshalling 在类中 AbsComponentSaveStateparcel - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.