public class BatchNotification extends Notification implements java.lang.Iterable<Notification>
content, type| 构造器和说明 |
|---|
BatchNotification() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(NotificationType type,
java.lang.Object content)
增加要发送的通知。
|
void |
clear()
清除通知队列。
|
java.lang.Object |
getContent()
取得通知发送的数据。
|
java.util.Iterator<Notification> |
iterator() |
void |
setContent(java.lang.Object content) |
void |
setType(NotificationType type) |
int |
size()
队列的大小。
|
java.lang.String |
toString() |
getScope, getType, setScopepublic java.lang.String toString()
toString 在类中 Notificationpublic java.lang.Object getContent()
NotificationgetContent 在类中 Notificationpublic void setContent(java.lang.Object content)
setContent 在类中 Notificationpublic void setType(NotificationType type)
setType 在类中 Notificationpublic void add(NotificationType type, java.lang.Object content)
type - 通知类型content - 通知数据public void clear()
public java.util.Iterator<Notification> iterator()
iterator 在接口中 java.lang.Iterable<Notification>public int size()