public static class

ConsumableEvents.Event

extends Object
java.lang.Object
   ↳ com.mapsted.positioning.ConsumableEvents.Event<T>

Class Overview

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

Summary

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
From class java.lang.Object

Public Constructors

public Event (T data)

Public Methods

public T get ()

get returns the data and consumes it

public T peek ()

only peek to see the data without consuming

public String toString ()