|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.synchronization.UIDGenerator
A utility class to generate 32-bit unique IDs that can be used for synchronization or any other purpose.
| Method Summary | ||
|
static int |
getUID()
Gets a unique ID. |
|
static int |
getUID(int scope)
Gets a unique ID for a given scope. |
|
static int |
getUniqueScopingValue()
Generates a unique scoping value. |
|
static long |
makeLUID(int scope,
int value)
Generates a long form of the scope and value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int getUID()
public static int getUID(int scope)
scope - A unique scoping value.public static int getUniqueScopingValue()
public static long makeLUID(int scope,
int value)
This simply places the scope in the upper 32-bits and the value in the lower 32-bits.
scope - The scoping value.value - The UID for the scope.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.