Inherit ReadWriteProperty from ReadOnlyProperty #KT-27729
This commit is contained in:
@@ -35,14 +35,14 @@ public interface ReadOnlyProperty<in T, out V> {
|
|||||||
* @param T the type of object which owns the delegated property.
|
* @param T the type of object which owns the delegated property.
|
||||||
* @param V the type of the property value.
|
* @param V the type of the property value.
|
||||||
*/
|
*/
|
||||||
public interface ReadWriteProperty<in T, V> {
|
public interface ReadWriteProperty<in T, V> : ReadOnlyProperty<T, V> {
|
||||||
/**
|
/**
|
||||||
* Returns the value of the property for the given object.
|
* Returns the value of the property for the given object.
|
||||||
* @param thisRef the object for which the value is requested.
|
* @param thisRef the object for which the value is requested.
|
||||||
* @param property the metadata for the property.
|
* @param property the metadata for the property.
|
||||||
* @return the property value.
|
* @return the property value.
|
||||||
*/
|
*/
|
||||||
public operator fun getValue(thisRef: T, property: KProperty<*>): V
|
public override operator fun getValue(thisRef: T, property: KProperty<*>): V
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the value of the property for the given object.
|
* Sets the value of the property for the given object.
|
||||||
|
|||||||
+1
-1
@@ -3894,7 +3894,7 @@ public abstract interface class kotlin/properties/ReadOnlyProperty {
|
|||||||
public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract interface class kotlin/properties/ReadWriteProperty {
|
public abstract interface class kotlin/properties/ReadWriteProperty : kotlin/properties/ReadOnlyProperty {
|
||||||
public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
public abstract fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
||||||
public abstract fun setValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V
|
public abstract fun setValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user