Sequenceablepublic class NotificationSortingMap extends Object implements Sequenceable
SystemCapability.Notification#ANSSequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<NotificationSortingMap> |
PRODUCER |
Creates a
NotificationSortingMap instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
NotificationSortingMap() |
Default constructor used to create a
NotificationSortingMap instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<String> |
getHashCode() |
Obtains the list of sorted hash codes.
|
boolean |
getNotificationSorting(String hashCode,
NotificationSorting sorting) |
Obtains
NotificationSorting based on the hash codes. |
boolean |
marshalling(Parcel out) |
Marshals a
NotificationSortingMap object into a Parcel. |
String |
toString() |
Returns a string representation of the object.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals a
NotificationSortingMap object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<NotificationSortingMap> PRODUCER
NotificationSortingMap instance from a Parcel.public NotificationSortingMap()
NotificationSortingMap instance.public List<String> getHashCode()
public boolean getNotificationSorting(String hashCode, NotificationSorting sorting)
NotificationSorting based on the hash codes.hashCode - Indicates the hash codes obtained by using getHashCode().sorting - Indicates the sorting information about the hash codes.true if NotificationSorting is obtained based on the hash codes;
returns false otherwise.public boolean marshalling(Parcel out)
NotificationSortingMap object into a Parcel.
A process can call the unmarshalling(ohos.utils.Parcel) method to unmarshal
a NotificationSortingMap object from a Parcel to implement inter-process
communication (IPC).
marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
NotificationSortingMap object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.public String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())