public class NCollectionDiffImpl<T> extends Object implements NCollectionDiff<T>
| Constructor and Description |
|---|
NCollectionDiffImpl(Collection<T> oldItems,
Collection<T> newItems)
N collection diff.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
added()
Adds the specified d.
|
boolean |
anyAdd()
Any add.
|
boolean |
anyChange()
Any change.
|
boolean |
anyRemove()
Any remove.
|
void |
apply(NCollectionDiffApplier<T> a)
Apply.
|
List<NCollectionDiffChange<T>> |
changed()
Changed.
|
Iterator<NCollectionDiffChange<T>> |
iterator() |
<H> NCollectionDiff<H> |
map(Function<T,H> f)
Map.
|
Collection<T> |
newItems()
New items.
|
Collection<T> |
oldItems()
Old items.
|
List<T> |
removed()
Removes removed.
|
List<NCollectionDiffChange<T>> |
unchanged()
Unchanged.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiffList, diffList, diffMapEntries, diffMapKeys, diffMapValues, offorEach, spliteratorpublic NCollectionDiffImpl(Collection<T> oldItems, Collection<T> newItems)
oldItems - old itemsnewItems - new itemspublic Collection<T> oldItems()
oldItems in interface NCollectionDiff<T>public Collection<T> newItems()
newItems in interface NCollectionDiff<T>public boolean anyAdd()
anyAdd in interface NCollectionDiff<T>public Iterator<NCollectionDiffChange<T>> iterator()
iterator in interface Iterable<NCollectionDiffChange<T>>iterator in interface NCollectionDiff<T>public boolean anyRemove()
anyRemove in interface NCollectionDiff<T>public boolean anyChange()
anyChange in interface NCollectionDiff<T>public List<T> added()
added in interface NCollectionDiff<T>public List<T> removed()
removed in interface NCollectionDiff<T>public List<NCollectionDiffChange<T>> changed()
changed in interface NCollectionDiff<T>public List<NCollectionDiffChange<T>> unchanged()
unchanged in interface NCollectionDiff<T>public <H> NCollectionDiff<H> map(Function<T,H> f)
map in interface NCollectionDiff<T>f - fpublic void apply(NCollectionDiffApplier<T> a)
apply in interface NCollectionDiff<T>a - aCopyright © 2026 vpc open source initiative. All rights reserved.