Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object object)
if (this == object) {
return true;
}
if (object == null) {
return false;
}
if (getClass() != object.getClass()) {
return false;
}
PrinterId other = (PrinterId) object;
if (mServiceName == null) {
if (other.mServiceName != null) {
return false;
}
} else if (!mServiceName.equals(other.mServiceName)) {
return false;
}
if (!TextUtils.equals(mLocalId, other.mLocalId)) {
return false;
}
return true;
|
public java.lang.String | getLocalId()Gets the id of this printer which is unique in the context
of the print service that manages it.
return mLocalId;
|
public android.content.ComponentName | getServiceName()The id of the print service this printer is managed by.
return mServiceName;
|
public int | hashCode()
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((mServiceName != null)
? mServiceName.hashCode() : 1);
hashCode = prime * hashCode + mLocalId.hashCode();
return hashCode;
|
public java.lang.String | toString()
StringBuilder builder = new StringBuilder();
builder.append("PrinterId{");
builder.append("serviceName=").append(mServiceName.flattenToString());
builder.append(", localId=").append(mLocalId);
builder.append('}");
return builder.toString();
|
public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeParcelable(mServiceName, flags);
parcel.writeString(mLocalId);
|