org.fest.swing.timing
Class Timeout

java.lang.Object
  extended by org.fest.swing.timing.Timeout

public final class Timeout
extends Object

Understands a timeout.

Author:
Yvonne Wang, Alex Ruiz

Method Summary
 long duration()
          Returns the duration of the timeout in milliseconds.
static Timeout timeout(long duration)
          Creates a new Timeout.
static Timeout timeout(long duration, TimeUnit timeUnit)
          Creates a new Timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

timeout

public static Timeout timeout(long duration)
Creates a new Timeout.

Parameters:
duration - the duration of the timeout in milliseconds.
Returns:
the created Timeout.

timeout

public static Timeout timeout(long duration,
                              TimeUnit timeUnit)
Creates a new Timeout.

Parameters:
duration - the duration of the timeout.
timeUnit - the unit of time of the timeout.
Returns:
the created Timeout.
Throws:
NullPointerException - if the given time unit is null.

duration

public long duration()
Returns the duration of the timeout in milliseconds.

Returns:
the duration of the timeout in milliseconds.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.