Added more rule variables and updated JavaDoc

This commit is contained in:
gravitylow committed 2014-02-25 20:40:18 -05:00
1 parent e8c5a55f34
commit b0a2e82ac6
2 files changed
+47 -3

No files matched your search

@@ -335,6 +335,21 @@ public final class Utilities {
}
}
/**
* Determine whether a String can be cast to a Double
*
* @param string text to check
* @return true if double
*/
public static boolean isDouble(String string) {
try {
Double.parseDouble(string);
return true;
} catch (Exception ex) {
return false;
}
}
/**
* Calculate the time in milliseconds that it should take to break the given block with the given tool
*