Make PropertyMetadataImpl a data class

To allow property delegates to use property metadata as a key in the hash map,
and to improve debugging experience
This commit is contained in:
Alexander Udalov
2015-08-07 16:00:22 +03:00
parent ea292fa6d2
commit 9095fa2844
4 changed files with 48 additions and 2 deletions
+3 -1
View File
@@ -29,4 +29,6 @@ public interface PropertyMetadata {
/**
* @suppress
*/
public class PropertyMetadataImpl(override val name: String): PropertyMetadata
public data class PropertyMetadataImpl(override val name: String): PropertyMetadata {
override fun toString() = "PropertyMetadata(name=$name)"
}