Sequenceablepublic class AppAccount extends Object implements Sequenceable
SystemCapability.Account#APP_ACCOUNTSequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
AppAccount() |
Default constructor used to create an
AppAccount instance. |
AppAccount(String name,
String owner) |
A constructor used to create an
AppAccount instance based on the specified account name and owner. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether this application account is the same as the one passed as the input parameter.
|
String |
getName() |
Obtains the name of the application account.
|
String |
getOwner() |
Obtains the owner of the application account.
|
int |
hashCode() |
Obtains the hash code of this application account.
|
boolean |
marshalling(Parcel data) |
Marshals this application account into a
Parcel object. |
String |
toString() |
Converts the application account information into a string.
|
boolean |
unmarshalling(Parcel reply) |
Unmarshals this application account from a
Parcel object. |
hasFileDescriptorpublic String toString()
public boolean equals(Object obj)
equals 在类中 Objectobj - Indicates the application account to be compared.true if the two application accounts are the same; returns false otherwise.Object.hashCode(),
HashMappublic int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public String getOwner()
public String getName()
public boolean marshalling(Parcel data)
Parcel object.marshalling 在接口中 Sequenceabledata - Indicates the Parcel object for marshalling.true if marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel reply)
Parcel object.unmarshalling 在接口中 Sequenceablereply - Indicates the Parcel object for unmarshalling.true if unmarshalling is successful; returns false otherwise.