Parcelable
public class ItemWrapper<T extends Item> extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.ContentsFlags, Parcelable.Creator<T extends Object>, Parcelable.WriteFlags
Modifier and Type | Field | Description |
---|---|---|
static Parcelable.Creator<ItemWrapper> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor | Description |
---|---|---|
protected |
ItemWrapper(Parcel in) |
|
|
ItemWrapper(T value) |
Modifier and Type | Method | Description |
---|---|---|
int |
describeContents() |
|
List<Class> |
getTypes() |
|
String |
getTypeString() |
|
T |
getValue() |
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ItemWrapper> CREATOR
public ItemWrapper(T value)
protected ItemWrapper(Parcel in)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public T getValue()
public String getTypeString()