public static class

ConsumableEvents.EmptyEvent

extends Object
java.lang.Object
   ↳ com.mapsted.positioning.ConsumableEvents.EmptyEvent

Class Overview

A data type to be used in Livedata for consumable event like a click. On first call to get method, it will return true. Subsequent calls to get method will return false. When used in live data, observer should handle the event only if get() is true.

Summary

Public Constructors
EmptyEvent()
Public Methods
boolean get()
get will return the value and consume it.
boolean peek()
use peek to see the value without consuming
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EmptyEvent ()

Public Methods

public boolean get ()

get will return the value and consume it.

public boolean peek ()

use peek to see the value without consuming

public String toString ()