Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object object)Compares this ParcelUuid to another object for equality. If {@code object}
is not {@code null}, is a ParcelUuid instance, and all bits are equal, then
{@code true} is returned.
if (object == null) {
return false;
}
if (this == object) {
return true;
}
if (!(object instanceof ParcelUuid)) {
return false;
}
ParcelUuid that = (ParcelUuid) object;
return (this.mUuid.equals(that.mUuid));
|
public static android.os.ParcelUuid | fromString(java.lang.String uuid)Creates a new ParcelUuid from a string representation of {@link UUID}.
return new ParcelUuid(UUID.fromString(uuid));
|
public java.util.UUID | getUuid()Get the {@link UUID} represented by the ParcelUuid.
return mUuid;
|
public int | hashCode()
return mUuid.hashCode();
|
public java.lang.String | toString()Returns a string representation of the ParcelUuid
For example: 0000110B-0000-1000-8000-00805F9B34FB will be the return value.
return mUuid.toString();
|
public void | writeToParcel(Parcel dest, int flags)
dest.writeLong(mUuid.getMostSignificantBits());
dest.writeLong(mUuid.getLeastSignificantBits());
|