Class ScopedStore<T>

java.lang.Object
net.jqwik.engine.execution.lifecycle.ScopedStore<T>
All Implemented Interfaces:
net.jqwik.api.lifecycle.Store<T>

public class ScopedStore<T> extends Object implements net.jqwik.api.lifecycle.Store<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.jqwik.api.lifecycle.Store

    net.jqwik.api.lifecycle.Store.CloseOnReset, net.jqwik.api.lifecycle.Store.StoreFacade
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScopedStore(Object identifier, net.jqwik.api.lifecycle.Lifespan lifespan, org.junit.platform.engine.TestDescriptor scope, Supplier<T> initialValueSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    get()
     
     
    org.junit.platform.engine.TestDescriptor
     
    boolean
    isVisibleFor(org.junit.platform.engine.TestDescriptor retriever)
     
    net.jqwik.api.lifecycle.Lifespan
     
    void
     
     
    void
    update(Function<T,T> updater)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ScopedStore

      public ScopedStore(Object identifier, net.jqwik.api.lifecycle.Lifespan lifespan, org.junit.platform.engine.TestDescriptor scope, Supplier<T> initialValueSupplier)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface net.jqwik.api.lifecycle.Store<T>
    • lifespan

      public net.jqwik.api.lifecycle.Lifespan lifespan()
      Specified by:
      lifespan in interface net.jqwik.api.lifecycle.Store<T>
    • update

      public void update(Function<T,T> updater)
      Specified by:
      update in interface net.jqwik.api.lifecycle.Store<T>
    • reset

      public void reset()
      Specified by:
      reset in interface net.jqwik.api.lifecycle.Store<T>
    • getIdentifier

      public Object getIdentifier()
    • getScope

      public org.junit.platform.engine.TestDescriptor getScope()
    • isVisibleFor

      public boolean isVisibleFor(org.junit.platform.engine.TestDescriptor retriever)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • close

      public void close()