java.lang.Object | |
↳ | android.os.ParcelUuid |
This class is a Parcelable wrapper around UUID
which is an
immutable representation of a 128-bit universally unique
identifier.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<ParcelUuid> | CREATOR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor creates a ParcelUuid instance from the
given
UUID . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Compares this ParcelUuid to another object for equality.
| |||||||||||
Creates a new ParcelUuid from a string representation of
UUID . | |||||||||||
Get the
UUID represented by the ParcelUuid. | |||||||||||
Returns an integer hash code for this object.
| |||||||||||
Returns a string representation of the ParcelUuid
For example: 0000110B-0000-1000-8000-00805F9B34FB will be the return value.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
Constructor creates a ParcelUuid instance from the
given UUID
.
uuid | UUID |
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Compares this ParcelUuid to another object for equality. If object
is not null
, is a ParcelUuid instance, and all bits are equal, then
true
is returned.
object | the Object to compare to. |
---|
true
if this ParcelUuid is equal to object
or false
if not.
Creates a new ParcelUuid from a string representation of UUID
.
uuid | the UUID string to parse. |
---|
NullPointerException | if uuid is null . |
---|---|
IllegalArgumentException | if uuid is not formatted correctly.
|
Get the UUID
represented by the ParcelUuid.
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Returns a string representation of the ParcelUuid For example: 0000110B-0000-1000-8000-00805F9B34FB will be the return value.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|