private void addToQueue(SerialMessage serialMessage){
  if (serialMessage == null) {
    return;
  }
  if (!msgQueue.contains(serialMessage) && msgQueue.remainingCapacity() > 1) {
    msgQueue.add(serialMessage);
  }
  sendMessage();
}

private void addToQueue ( SerialMessage serialMessage ) { if ( serialMessage == null ) { return ; } if ( ! msgQueue . contains ( serialMessage ) && msgQueue . remainingCapacity ( ) > 1 ) { msgQueue . add ( serialMessage ) ; } sendMessage ( ) ; }
move the messages to the queue
