public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
asList(T... elements)
Creates a list from the given elements.
|
static void |
sleep(int millis)
Sleeps for the given milliseconds.
|
public static <T> List<T> asList(T... elements)
asList(1, 2, 3)
creates a list with three integers.asList("a", "b", "d")
creates a list with three strings.asList(asItemIdentifier("item1"), asItemIdentifier("item2"))
creates a list two item identifiers.public static void sleep(int millis)
Thread.sleep(long)
and wraps possible InterruptedException
s into a RuntimeException
.Copyright 2009-2012 Micro Focus. All Rights Reserved.