Remove generic bound for Parceler

This commit is contained in:
Yan Zhulanow
2017-09-11 22:53:19 +03:00
parent a4f06c9fa8
commit 7dbefc1613
4 changed files with 16 additions and 16 deletions
@@ -20,21 +20,21 @@ package kotlinx.android.parcel
import android.os.Parcel
import android.os.Parcelable
interface Parceler<P: Parcelable> {
interface Parceler<T> {
/**
* Writes the [P] instance state to the [parcel].
* Writes the [T] instance state to the [parcel].
*/
fun P.write(parcel: Parcel, flags: Int)
fun T.write(parcel: Parcel, flags: Int)
/**
* Reads the [P] instance state from the [parcel], constructs the new [P] instance and returns it.
* Reads the [T] instance state from the [parcel], constructs the new [T] instance and returns it.
*/
fun create(parcel: Parcel): P
fun create(parcel: Parcel): T
/**
* Returns a new [Array]<P> with the given array [size].
* Returns a new [Array]<T> with the given array [size].
*/
fun newArray(size: Int): Array<P> {
fun newArray(size: Int): Array<T> {
throw NotImplementedError("Generated by Android Extensions automatically")
}
}