public abstract class CollectionParcelConverter<T,C extends Collection<T>> extends Object implements TypeRangeParcelConverter<Collection<T>,C>
| Constructor and Description |
|---|
CollectionParcelConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract C |
createCollection() |
C |
fromParcel(android.os.Parcel parcel)
Generates an instance from the values provided in the given parcel.
|
abstract T |
itemFromParcel(android.os.Parcel parcel) |
abstract void |
itemToParcel(T input,
android.os.Parcel parcel) |
void |
toParcel(Collection<T> input,
android.os.Parcel parcel)
Write the given input parameter to the destinationParcel.
|
public CollectionParcelConverter()
public void toParcel(Collection<T> input, android.os.Parcel parcel)
TypeRangeParcelConverterWrite the given input parameter to the destinationParcel.
toParcel in interface TypeRangeParcelConverter<Collection<T>,C extends Collection<T>>input - U instanceparcel - Parcel to write topublic C fromParcel(android.os.Parcel parcel)
TypeRangeParcelConverterGenerates an instance from the values provided in the given parcel.
fromParcel in interface TypeRangeParcelConverter<Collection<T>,C extends Collection<T>>parcel - Parcel to read frompublic abstract void itemToParcel(T input, android.os.Parcel parcel)
public abstract T itemFromParcel(android.os.Parcel parcel)
public abstract C createCollection()
Copyright © 2017. All Rights Reserved.