public static class ParcelConverter.EmptyConverter extends Object implements ParcelConverter<Object>
Noop ParcelConverter used as a empty placeholder for the Parcel.value annotation parameter. Performs no mapping
and throws ParcelerRuntimeExceptions upon calling any method.
ParcelConverter.EmptyConverterCONVERT_FROM_PARCEL, CONVERT_TO_PARCEL| Constructor and Description |
|---|
EmptyConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromParcel(android.os.Parcel parcel)
Generates an instance from the values provided in the given parcel.
|
void |
toParcel(Object input,
android.os.Parcel destinationParcel)
Write the given input parameter to the destinationParcel.
|
public EmptyConverter()
public void toParcel(Object input, android.os.Parcel destinationParcel)
TypeRangeParcelConverterWrite the given input parameter to the destinationParcel.
toParcel in interface TypeRangeParcelConverter<Object,Object>input - U instancedestinationParcel - Parcel to write topublic Object fromParcel(android.os.Parcel parcel)
TypeRangeParcelConverterGenerates an instance from the values provided in the given parcel.
fromParcel in interface TypeRangeParcelConverter<Object,Object>parcel - Parcel to read fromCopyright © 2020. All Rights Reserved.