Package org.robolectric.util
Package containing general utility classes.
-
Interface Summary Interface Description Consumer<T> Represents an operation that accepts a single input argument and returns no result.Function<R,T> Interface defining a function object.NamedStream Marker interface forInputStream
that need special handling.PerfStatsCollector.ThrowingRunnable<F extends Exception> Runnable that throws an exception.PerfStatsCollector.ThrowingSupplier<T,F extends Exception> Supplier that throws an exception. -
Class Summary Class Description FragmentTestUtil Deprecated. Please useRobolectric.buildFragment(Class)
instead.JavaVersion Join Utility class used to join strings together with a delimiter.Logger Logger for Robolectric.PerfStatsCollector Collects performance statistics for later reporting viaPerfStatsReporter
.ReflectionHelpers Collection of helper methods for calling methods and accessing fields reflectively.ReflectionHelpers.ClassParameter<V> Typed parameter used with reflective method calls.ReflectionHelpers.StringParameter<V> String parameter used with reflective method calls.Scheduler Class that manages a queue of Runnables that are scheduled to run now (or at some time in the future).SimpleFuture<T> Deprecated. This class can introduce deadlocks, since its lock is held while invoking run().SimplePerfStatsReporter Simple implementation of PerfStatsReporter that writes stats to stdout.SoftThreadLocal<T> Soft reference to ajava.lang.ThreadLocal
.Strftime An implementation of the Unix strftime with some glibc extensions.TempDirectory TestRunnable TimeUtils Utility methods for dealing with time.Util Generic collection of utility methods. -
Enum Summary Enum Description Scheduler.IdleState Describes the current state of aScheduler
.