FileDocCategorySizeDatePackage
PrintJobId.javaAPI DocAndroid 5.1 API2915Thu Mar 12 22:22:10 GMT 2015android.print

PrintJobId

public final class PrintJobId extends Object implements android.os.Parcelable
This class represents the id of a print job.

Fields Summary
private final String
mValue
public static final Parcelable.Creator
CREATOR
Constructors Summary
public PrintJobId()
Creates a new instance.

hide

        this(UUID.randomUUID().toString());
    
public PrintJobId(String value)
Creates a new instance.

param
value The internal value.
hide

        mValue = value;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public booleanequals(java.lang.Object obj)

        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        PrintJobId other = (PrintJobId) obj;
        if (!TextUtils.equals(mValue, other.mValue)) {
            return false;
        }
        return true;
    
public java.lang.StringflattenToString()
Flattens this id to a string.

return
The flattened id.
hide

        return mValue;
    
public inthashCode()

        final int prime = 31;
        int result = 1;
        result = prime * result + ((mValue != null) ? mValue.hashCode() : 0);
        return result;
    
public static android.print.PrintJobIdunflattenFromString(java.lang.String string)
Unflattens a print job id from a string.

string
The string.
return
The unflattened id, or null if the string is malformed.
hide

        return new PrintJobId(string);
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeString(mValue);