E - Тип элемента в спискеpublic class AddedPositionalEvent<E> extends Object implements AddedPositionalItemEvent<E,EventList<E>,Integer>
| Modifier and Type | Field and Description |
|---|---|
protected EventList<E> |
collection |
protected E |
element |
protected Integer |
position |
| Constructor and Description |
|---|
AddedPositionalEvent(E elem,
EventList<E> coll,
Integer pos) |
| Modifier and Type | Method and Description |
|---|---|
E |
getAddedItem()
Указывает на добавленый/новый элемент в коллекции
|
Integer |
getAddedItemPosition()
Указывает на позицию в которой элемент вставлен
|
EventList<E> |
getCollection()
Возвращает коллекцию с которой связано сообщение
|
String |
toString() |
public EventList<E> getCollection()
CollectionEventgetCollection in interface CollectionEvent<EventList<E>>public Integer getAddedItemPosition()
AddedPositionalItemEventgetAddedItemPosition in interface AddedPositionalItemEvent<E,EventList<E>,Integer>public E getAddedItem()
AddedItemEventgetAddedItem in interface AddedItemEvent<E,EventList<E>>Copyright © 2017. All rights reserved.