public class CollectionDelta extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<DataSingleton> |
added |
protected String |
cause |
protected ArrayList<DataSingleton> |
removed |
protected ArrayList<DataSingleton> |
unchanged |
| Constructor and Description |
|---|
CollectionDelta(String cause) |
CollectionDelta(String cause,
Collection<T> before) |
| Modifier and Type | Method and Description |
|---|---|
<T extends DataSingleton> |
calcChanges(Collection<T> after) |
<T extends DataSingleton> |
calcChanges(T[] after) |
boolean |
exists(DataSingleton item) |
ArrayList<DataSingleton> |
getAdded() |
String |
getCause() |
boolean |
hasChanged() |
boolean |
removeContains(DataSingleton item) |
protected String cause
protected ArrayList<DataSingleton> added
protected ArrayList<DataSingleton> unchanged
protected ArrayList<DataSingleton> removed
public CollectionDelta(String cause)
public CollectionDelta(String cause, Collection<T> before)
public <T extends DataSingleton> CollectionDelta calcChanges(T[] after)
public <T extends DataSingleton> CollectionDelta calcChanges(Collection<T> after)
public boolean hasChanged()
public boolean exists(DataSingleton item)
public String getCause()
public boolean removeContains(DataSingleton item)
public ArrayList<DataSingleton> getAdded()
Copyright © 2021. All rights reserved.