public void addListener(ConnectableDeviceListener listener){
  if (!listeners.contains(listener)) {
    listeners.add(listener);
  }
}

public void addListener ( ConnectableDeviceListener listener ) { if ( ! listeners . contains ( listener ) ) { listeners . add ( listener ) ; } }
adds the connectabledevicelistener to the list of listeners for this connectabledevice to receive certain events .
