SequenceableComponentSaveStatepublic abstract class AbsComponentSaveState extends Object implements Sequenceable
Sequenceable to ensure that the states of all child classes of
the Component are saved in method chaining mode.
All component states must inherit this class. The state of the superclass of a component is saved in this class.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static AbsComponentSaveState |
EMPTY_STATE |
Indicates that no component state is saved.
|
static Sequenceable.Producer<AbsComponentSaveState> |
PRODUCER |
Creates an
AbsComponentSaveState object based on a Parcel object. |
| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
AbsComponentSaveState(Parcel in) |
Constructor used to create an
AbsComponentSaveState object based on a Parcel object. |
protected |
AbsComponentSaveState(Parcel in,
ClassLoader classLoader) |
Constructor used to create an
AbsComponentSaveState object based on Parcel
and ClassLoader objects. |
protected |
AbsComponentSaveState(Sequenceable superState) |
Constructor used to create an
AbsComponentSaveState object based on the superState. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Sequenceable |
getSuperState() |
Obtains the state of the superclass of this component.
|
boolean |
marshalling(Parcel parcel) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel parcel) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final AbsComponentSaveState EMPTY_STATE
public static final Sequenceable.Producer<AbsComponentSaveState> PRODUCER
AbsComponentSaveState object based on a Parcel object.protected AbsComponentSaveState(Sequenceable superState)
AbsComponentSaveState object based on the superState.
This method is called by a derived class.superState - Indicates the state of the superclass of this component.protected AbsComponentSaveState(Parcel in)
AbsComponentSaveState object based on a Parcel object.in - Indicates the Parcel object from which the component reads data.protected AbsComponentSaveState(Parcel in, ClassLoader classLoader)
AbsComponentSaveState object 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 final Sequenceable getSuperState()
public boolean marshalling(Parcel parcel)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableparcel - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel parcel)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceableparcel - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.