|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.util.Utils
public final class Utils
(No dependents)
Created: Jan 27, 2009
| Nested Class Summary | |
|---|---|
static class |
Utils.Timer
This class is used to measure time differences. |
static class |
Utils.TimerGroup
Simple class to maintain several timers at once. |
| Field Summary | |
|---|---|
private static java.util.Date |
time
|
| Constructor Summary | |
|---|---|
protected |
Utils()
|
| Method Summary | ||
|---|---|---|
static int |
compare(java.lang.Object object1,
java.lang.Object object2)
Determines order between two objects by using their toString() method. |
|
static java.lang.String |
getStackTrace(java.lang.Throwable ex)
Takes an error and returns a String representation of the stack trace. |
|
static java.lang.String |
getTime(long milliseconds)
|
|
static java.lang.String |
getTimeDate()
|
|
static java.lang.String |
getTimeLong(long milliseconds)
|
|
static java.lang.String |
getTimeLongPrecise(long milliseconds)
|
|
static java.lang.String |
getTimePrecise(long milliseconds)
|
|
static Utils.Timer |
getTimer()
|
|
static boolean |
isSet(int options,
int option)
Tests to see if the on bits in option are also on in options. |
|
static boolean |
isSet(long options,
long option)
Tests to see if the on bits in option are also on in options. |
|
static
|
sort(java.util.Vector<E> list)
Sorts a list alphabetically using each element's toString() function. |
|
static byte[] |
toByteArray(long value)
Takes a long value and returns a byte array with its value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.Date time
| Constructor Detail |
|---|
protected Utils()
| Method Detail |
|---|
public static java.lang.String getTimeDate()
public static Utils.Timer getTimer()
Timer.public static byte[] toByteArray(long value)
value -
public static java.lang.String getStackTrace(java.lang.Throwable ex)
ex - Error/Exception to get the stack trace from.
public static <E> java.util.Vector<E> sort(java.util.Vector<E> list)
E - list -
public static int compare(java.lang.Object object1,
java.lang.Object object2)
object1 - object2 -
public static java.lang.String getTime(long milliseconds)
public static java.lang.String getTimeLong(long milliseconds)
public static java.lang.String getTimePrecise(long milliseconds)
public static java.lang.String getTimeLongPrecise(long milliseconds)
public static boolean isSet(int options,
int option)
options - Options the user set.option - Option to be tested.
(options&option)==option
public static boolean isSet(long options,
long option)
options - Options the user set.option - Option to be tested.
(options&option)==option
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||