public class Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.EnumOS |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getLastElement(java.util.List<T> list) |
static Util.EnumOS |
getOSType() |
static <V> V |
runTask(java.util.concurrent.FutureTask<V> task,
Logger logger)
Run a task and return the result, catching any execution exceptions and logging them to the specified logger
|
public static Util.EnumOS getOSType()
public static <V> V runTask(java.util.concurrent.FutureTask<V> task, Logger logger)
public static <T> T getLastElement(java.util.List<T> list)