|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.util.ConvenienceMethods
public final class ConvenienceMethods
Collection of methods that are useful in different contexts.
| Method Summary | |
|---|---|
static boolean |
areEqual(Object o1,
Object o2)
Determines if both arguments are equal according to their equals method (assumed to be symmetric). |
static String |
getLineSeparator()
Read system property "line.separator", returns '\n' if that fails (whereby a LOG message is reported). |
static long |
readSizeSystemProperty(String envVar,
long defaultValue)
Read system property envVar that is supposed to be of
a format such as '1024' (1024 bytes), '5K' (5 kilobyte),
'2M' (2 megabyte). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean areEqual(Object o1,
Object o2)
o1 - First object for comparison, may be null.o2 - Second object for comparison, may be null.
public static String getLineSeparator()
public static long readSizeSystemProperty(String envVar,
long defaultValue)
envVar that is supposed to be of
a format such as '1024' (1024 bytes), '5K' (5 kilobyte),
'2M' (2 megabyte). If that fails (not parsable or negative), it will
return the the default value and log an error message.
envVar - The name of the variable, must not be null (NPE)defaultValue - The default value (in bytes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||