Package org.fest.swing.timing
Class Timeout
java.lang.Object
org.fest.swing.timing.Timeout
Understands a timeout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
duration
private final long duration
-
-
Constructor Details
-
Timeout
private Timeout(long duration)
-
-
Method Details
-
timeout
Creates a new
.Timeout
- Parameters:
duration
- the duration of the timeout in milliseconds.- Returns:
- the created
Timeout
.
-
timeout
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 isnull
.
-
duration
public long duration()Returns the duration of the timeout in milliseconds.- Returns:
- the duration of the timeout in milliseconds.
-