1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

only allow non-null types for SingleEvent

This commit is contained in:
Christophe Beyls 2020-03-29 18:33:49 +02:00
parent a9c76680e4
commit 162628687d

View file

@ -3,7 +3,7 @@ package be.digitalia.fosdem.livedata
/**
* Encapsulates data that can only be consumed once.
*/
class SingleEvent<T>(content: T) {
class SingleEvent<T :Any>(content: T) {
private var content: T? = content