textbender.a.r.desk
Class HostServiceRegistry.UniqueID

java.lang.Object
  extended by java.lang.Number
      extended by java.math.BigInteger
          extended by HostServiceRegistry.UniqueID
All Implemented Interfaces:
Serializable, Comparable<BigInteger>
Enclosing interface:
HostServiceRegistry

@ThreadSafe
public static final class HostServiceRegistry.UniqueID
extends BigInteger

An identifier, each instance of which is guaranteed to be unique within a single run of the desk daemon. It is probably also unique between runs, but that is not guaranteed.

Often used to identify a remote source of data. Useful where the source cannot be identified by a remote reference because it does not implement Remote. Or because it is short lived, and so its references too are short-lived. (Comparing a reference to remote Applet source, by equals(), may throw an exception after page exit "Timer already cancelled".) In these cases, a UniqueID may be used instead.

See Also:
HostServiceRegistry.nextUniqueID(), Serialized Form

Field Summary
 
Fields inherited from class java.math.BigInteger
ONE, TEN, ZERO
 
Constructor Summary
HostServiceRegistry.UniqueID(byte[] val)
           
 
Method Summary
 
Methods inherited from class java.math.BigInteger
abs, add, and, andNot, bitCount, bitLength, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, isProbablePrime, longValue, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, signum, subtract, testBit, toByteArray, toString, toString, valueOf, xor
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostServiceRegistry.UniqueID

HostServiceRegistry.UniqueID(byte[] val)