-
- All Implemented Interfaces:
-
cz.mroczis.netmonster.core.feature.merge.ICellMerger
public final class CellMergerPrimary implements ICellMerger
Merges not primary cells (with NoneConnection, SecondaryConnection as connection) from two sources:
ITelephonyManagerCompat.getAllCellInfo into one list without duplicities.
-
-
Constructor Summary
Constructors Constructor Description CellMergerPrimary()
-
Method Summary
-
-
Method Detail
-
merge
List<ICell> merge(List<ICell> oldApi, List<ICell> newApi, Boolean displayOn)
Performs merge of two lists. Returned list's size is in range from min(oldApi.size, newApi.size) to max(oldApi.size, newApi.size), both boundaries are inclusive.
- Parameters:
oldApi- data from ITelephonyManagerCompat.newApi- data from ITelephonyManagerCompat.getAllCellInfodisplayOn- true is any display of current device is on
-
-
-
-