combine

Combines connection methods.

Given a list of connection methods, produce a list where similar methods are combined into a single one. This is currently only applicable for BLE and one requirement is that all method instances share the same UUID. If this is not the case, IllegalArgumentException is thrown.

This is the reverse of .disambiguate.

Return

the given list of connection methods where similar methods are combined into one.

Parameters

connectionMethods

a list of connection methods.

Throws

if some methods couldn't be combined