Package android.os
Class ParcelUuid
- java.lang.Object
-
- android.os.ParcelUuid
-
- All Implemented Interfaces:
Parcelable
public class ParcelUuid extends java.lang.Object implements Parcelable
Parcelable wrapper around theUUID
class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<P>, Parcelable.Creator<P>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<ParcelUuid>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description ParcelUuid(java.util.UUID uuid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshaled representation.boolean
equals(java.lang.Object o)
static ParcelUuid
fromString(java.lang.String uuid)
java.util.UUID
getUuid()
int
hashCode()
java.lang.String
toString()
void
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<ParcelUuid> CREATOR
-
-
Method Detail
-
fromString
public static ParcelUuid fromString(java.lang.String uuid)
-
getUuid
public java.util.UUID getUuid()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
describeContents
public int describeContents()
Description copied from interface:Parcelable
Describe the kinds of special objects contained in this Parcelable's marshaled representation.- Specified by:
describeContents
in interfaceParcelable
- Returns:
- Bitmask of CONTENTS_* flags.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
Description copied from interface:Parcelable
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceParcelable
- Parameters:
dest
- The parcelable to write to.flags
- Bitmask of PARCELABLE_WRITE_* flags.
-
-