|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.util.Internalize
public final class Internalize
Intern functionality for all immutable Objects. It's about 2 times faster than String.intern().
Method Summary | ||
---|---|---|
static
|
intern(T pObject)
Internalizes any Immutable Object. |
|
static
|
internNoSync(T pObject)
Internalizes any Immutable Object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final <T> T intern(T pObject)
T
- any immutable Object.pObject
- the Object to internalize.
public static final <T> T internNoSync(T pObject)
synchronized(Internalize.class) { ... ... = Internalize.internNoSync(...); ... }
T
- any immutable Object.pObject
- the Object to internalize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |