Uuid
and UuidFactory
Instances of the class {@link net.jini.id.Uuid} are universally
unique identifiers. A Uuid
is a 128-bit value. The
class {@link net.jini.id.UuidFactory} provides static methods for
creating Uuid
instances with specified values and newly
generated values.
The design of the Uuid
and UuidFactory
classes is intended to allow the actual class of a Uuid
instance to be preferred (see {@link net.jini.loader.pref}), to
help preserve that class's codebase annotation when it gets
unmarshalled, while the Uuid
class itself is not
preferred, so that Uuid
can be used in public field,
method, and constructor declarations of types resolvable by classes
defined by different class loaders.
ReferentUuid
and ReferentUuids
The interface {@link net.jini.id.ReferentUuid} allows a proxy for a
resource to express the identity of that resource as a
Uuid
. The class {@link net.jini.id.ReferentUuids}
provides a static convenience method for comparing the identities of
proxies that are instances of ReferentUuid
. With a
uniform interface for accessing the identity of a proxy's resource,
two proxies can be recognized as being for the same resource even if
the proxies' implementation classes are not the same version or not
defined by the same class loader.
@since 2.0
@version 2.0