Class ThreadAssertions

java.lang.Object
it.tidalwave.util.thread.ThreadAssertions

public final class ThreadAssertions extends Object
Facility class for asserting that the current thread is of some kind.
Author:
Fabrizio Giudici
  • Constructor Details

    • ThreadAssertions

      public ThreadAssertions()
  • Method Details

    • assertThread

      public static void assertThread(@Nonnull ThreadType threadType)
      Asserts that the current thread is of the specified type.
      Parameters:
      threadType - the thread type