Class CollectionChangedEventArgs<E>
Defines a class which contains changes of ObservableCollection.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public final class CollectionChangedEventArgs<E> implements ICleanable
Type Parameters
Name | Description |
---|---|
E |
Constructors
CollectionChangedEventArgs()
Declaration
public CollectionChangedEventArgs()
Methods
clear()
Clears the current state of this object
Declaration
public void clear()
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
getAction()
Gets the action that caused the event.
Declaration
public final CollectionChangedEventArgs.Action getAction()
Returns
Type | Description |
---|---|
CollectionChangedEventArgs.Action | The action that caused the event. |
getNewIndex()
Gets the index at which the change occurred.
Declaration
public final int getNewIndex()
Returns
Type | Description |
---|---|
int | the index at which the change occurred. |
getNewItems()
Gets the list of new items involved in the change.
Declaration
public final List<E> getNewItems()
Returns
Type | Description |
---|---|
List<E> | The new items. |
getOldIndex()
Gets the index at which the change occurred.
Declaration
public final int getOldIndex()
Returns
Type | Description |
---|---|
int | the index at which the change occurred. |
getOldItems()
Gets the old items which were removed or replaced in this change.
Declaration
public final List<E> getOldItems()
Returns
Type | Description |
---|---|
List<E> | The old items. |
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
toString()
Declaration
public String toString()
Returns
Type | Description |
---|---|
String |