filterByAttribute

Returns a list containing all elements of TorSetting within the Iterable which contain a LineItem, and is configured for, attribute A.

For example, if TorOption.Attribute.UNIX_SOCKET is parameter A and 2 declarations of TorOption.ControlPort are present (one configured as a Unix Socket, and the other as a TCP port), then only the one configured as a Unix Socket will be present in the returned list.