public abstract class BaseCommand<T> extends Object
Constructor and Description |
---|
BaseCommand() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
areEqual(T objA,
T objB) |
@NonNull List<T> |
diffOf(List<T> updated,
List<T> original)
Abstract method give diff between two List passed.
|
<U> List<U> |
diffOf(@Nullable List<U> updated,
@Nullable List<U> original,
Comparator<U> comparator)
Abstract method give diff between two List passed based on comparator.
|
public <U> List<U> diffOf(@Nullable List<U> updated, @Nullable List<U> original, Comparator<U> comparator)
U
- U extends DataObjectupdated
- Updated Listoriginal
- Origina list to be compared withcomparator
- based on which diff will be returnedpublic @NonNull List<T> diffOf(List<T> updated, List<T> original)
updated
- Updated Listoriginal
- Origina list to be compared withCopyright © 2020 OpenDaylight. All rights reserved.