E- the type of elements in the list where the change occurred
public class ListReplaceEvent<E> extends ListChangeEvent<E>
|Constructor and Description|
Creates a new event object.
|Modifier and Type||Method and Description|
Returns the element that is now contained in the list.
Returns the element that has been replaced or will be replaced.
getIndex, getSource, getType
public ListReplaceEvent(java.util.List<E> source, int index, E oldElement, E newElement)
source- the list instance that has been modified
oldElement- the element that will be or has been replaced in the list
newElement- the element that is the replacement for the old element
public E getOldElement()