|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.jini.util.ConfigMath
public class ConfigMath
A utility class to help with Configurations.
| Constructor Summary | |
|---|---|
ConfigMath()
|
|
| Method Summary | |
|---|---|
static double |
add(double a,
double b)
|
static int |
add(int a,
int b)
|
static long |
add(long a,
long b)
|
static File |
getAbsoluteFile(File file)
Return the absolute file for the file. |
static String |
getAbsolutePath(File file)
Return the absolute path for the file. |
static String |
getURIString(File file)
Convert a file into an absolute URI and return its representation. |
static long |
m2ms(long m)
Convert minutes to milliseconds. |
static long |
ms2ns(long ms)
Convert milliseconds to nanoseconds. |
static double |
multiply(double a,
double b)
|
static int |
multiply(int a,
int b)
|
static long |
multiply(long a,
long b)
|
static String |
q(String v)
Quote a string value. |
static long |
s2ms(long s)
Convert seconds to milliseconds. |
static long |
s2ns(long s)
Convert seconds to nanoseconds. |
static String |
toString(Object o)
Useful for enums which can't be handled otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigMath()
| Method Detail |
|---|
public static int add(int a,
int b)
public static long add(long a,
long b)
public static double add(double a,
double b)
public static int multiply(int a,
int b)
public static long multiply(long a,
long b)
public static double multiply(double a,
double b)
public static String toString(Object o)
o -
public static long s2ns(long s)
s - seconds.
public static long ms2ns(long ms)
ms - Milliseconds.
public static long s2ms(long s)
s - seconds.
public static long m2ms(long m)
m - minutes.
public static String getAbsolutePath(File file)
file - The file.
public static File getAbsoluteFile(File file)
file - The file.
public static String getURIString(File file)
file - The file.
public static String q(String v)
v - The value.
ConfigUtil.stringLiteral(String) instead?
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||