|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.misc.Tools
public class Tools
Bag of miscellaneous tricks.
Constructor Summary | |
---|---|
Tools()
|
Method Summary | |
---|---|
static java.lang.StringBuffer |
indent(java.lang.StringBuffer in,
java.lang.String indentation)
Indent all the lines in a StringBuffer by a certain indentation string. |
static void |
profile(java.lang.String functionName)
Prints the current time to STDERR along with a message, presumably an identifier for a function in the code. |
static java.lang.StringBuffer |
renderUnknownObject(java.lang.Object object)
Render an object of class unknown (at compile time). |
static boolean |
satisfies(java.lang.Class given,
java.lang.String required)
Determines if a given class satisfies a required class (by being the same or a subclass). |
static java.util.Iterator |
sortFromEnumeration(java.util.Enumeration e)
Sorts the elements accessible from an Enumeration by lexiographic order and returns an Iterator over the result. |
static java.util.Iterator |
sortFromIterator(java.util.Iterator e)
Sorts the elements accessible from an Iterator by lexiographic order and returns an Iterator over the result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tools()
Method Detail |
---|
public static java.lang.StringBuffer indent(java.lang.StringBuffer in, java.lang.String indentation) throws Scheherexception
Scheherexception
public static boolean satisfies(java.lang.Class given, java.lang.String required)
public static java.lang.StringBuffer renderUnknownObject(java.lang.Object object) throws Scheherexception
Scheherexception
public static java.util.Iterator sortFromEnumeration(java.util.Enumeration e)
public static java.util.Iterator sortFromIterator(java.util.Iterator e)
public static void profile(java.lang.String functionName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |