Package 

Class SynchronousMavericksStateStore

  • All Implemented Interfaces:
    com.airbnb.mvrx.MavericksStateStore

    
    public final class SynchronousMavericksStateStore<S extends Object>
     implements MavericksStateStore<S>
                        

    This acts as a functional state store, but all updates happen synchronously. The intention of this is to allow state changes in tests to be tracked synchronously.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Flow<S> flow
      private volatile S state
    • Method Summary

      Modifier and Type Method Description
      Flow<S> getFlow()
      S getState()
      Unit setState(S state)
      Unit get(Function1<S, Unit> block)
      Unit set(Function1<S, S> stateReducer)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait