java.lang.Object | |
↳ | com.mapsted.positioning.ConsumableEvents.Event<T> |
A data type to be used in Livedata for consumable event that may need a payload as well. For eg. an error event which has a error message
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Event(T data) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
T |
get()
get returns the data and consumes it
| ||||||||||
T |
peek()
only peek to see the data without consuming
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
get returns the data and consumes it
only peek to see the data without consuming