Remove generic bound for Parceler
This commit is contained in:
+7
-7
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user