|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.util.Strings
Contains static methods related to processing strings.
Method Summary | |
static java.lang.String |
toJvmIdString(java.lang.Object o)
Converts an object to a simple string representation showing just its type and JVM identity. |
static java.lang.String |
toShortJvmIdString(java.lang.Object o)
Converts an object to a simple string representation showing just its type (in short form) and JVM identity. |
static java.lang.String |
toStringSafely(java.lang.Object o)
Used as a "safer" form of Object.toString(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String toJvmIdString(java.lang.Object o)
o
- The object to be converted to string. Can be null.
public static java.lang.String toShortJvmIdString(java.lang.Object o)
toJvmIdString(java.lang.Object)
except only the last part of the class
name is used.
o
- The object to be converted to string. Can be null.
public static java.lang.String toStringSafely(java.lang.Object o)
An persistent object whose toString() method touches its persistent fields may try to load itself as a result, which in turn may travel back through the same code which was trying to convert the object toString() in the first place, producing an infinite loop. A classic example is throwing an exception whose message includes a toString() of the failed object.
o
- The object to be converted to string. Can be null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |