public boolean hasApiCapability(SerialMessageClass capability){
  return apiCapabilities.contains(capability);
}

public boolean hasApiCapability ( SerialMessageClass capability ) { return apiCapabilities . contains ( capability ) ; }
checks if the serial api supports the given capability .
