public class MinerUtil
extends Object
| Constructor and Description |
|---|
MinerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureNotNull(Object o,
String errorMsg)
Throws an IllegalArgumentException containing errorMsg if
o == null. |
static void |
ensureNotNullOrEmpty(String string,
String errorMsg)
Throws an IllegalArgumentException containing errorMsg if
string is null or empty. |
static boolean |
hasSuffix(String filename)
Checks if filename has a suffix, i.e. it contains a '.' .
|
static double |
ms2sec(int valueInMS)
Convert an int value in [ms] to a double value in [s]
|
static Integer |
sec2ms(double valueInSec)
Converts a double value in [s] to an Integer in [ms].
|
public static Integer sec2ms(double valueInSec)
valueInSec - the value in [s]public static double ms2sec(int valueInMS)
valueInMS - the value in [ms]public static void ensureNotNull(Object o,
String errorMsg)
o == null.o - the object which is checked for nullerrorMsg - the message set for the exceptionpublic static void ensureNotNullOrEmpty(String string,
String errorMsg)
string is null or empty.string - the string checked for null and zero lengtherrorMsg - the message set for the exceptionpublic static boolean hasSuffix(String filename)
filename - the filenameCopyright (c) Salzburg Research Forschungsgesellschaft mbH. All rights reserved.