@Deprecated
public class ParcelConverter<T extends android.os.Parcelable>
extends java.lang.Object
implements io.requery.Converter<T,byte[]>
Converter for persisting Parcelable Android objects. For example if you
wanted to store a custom parcelable as a SQLite BLOB you would extend this class
as follows:
public class MyParcelableConverter extends ParcelConverter {
public MyParcelableConverter() {
super(MyParcelable.class, MyParcelable.CREATOR);
}
}
and specify the class in the Converter annotation on the field to persist.
| Constructor and Description |
|---|
ParcelConverter(java.lang.Class<T> type,
android.os.Parcelable.Creator<T> creator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
T |
convertToMapped(java.lang.Class<? extends T> type,
byte[] value)
Deprecated.
|
byte[] |
convertToPersisted(T value)
Deprecated.
|
java.lang.Class<T> |
getMappedType()
Deprecated.
|
java.lang.Integer |
getPersistedSize()
Deprecated.
|
java.lang.Class<byte[]> |
getPersistedType()
Deprecated.
|
public java.lang.Class<T> getMappedType()
getMappedType in interface io.requery.Converter<T extends android.os.Parcelable,byte[]>public java.lang.Class<byte[]> getPersistedType()
getPersistedType in interface io.requery.Converter<T extends android.os.Parcelable,byte[]>public java.lang.Integer getPersistedSize()
getPersistedSize in interface io.requery.Converter<T extends android.os.Parcelable,byte[]>public byte[] convertToPersisted(T value)
convertToPersisted in interface io.requery.Converter<T extends android.os.Parcelable,byte[]>