All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seekay.contract.model.tools.SleepTools Maven / Gradle / Ivy

The newest version!
package org.seekay.contract.model.tools;

public class SleepTools {

  /**
   * Private constructor for utility class
   */
  private SleepTools() {
    throw new IllegalStateException("Utility classes should never be constructed");
  }

  /**
   * Wraps the thread sleep call and catches the exception
   * @param time
   */
  public static void sleep(int time) {
    try {
      Thread.sleep(time);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy