code: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length > 1) {
              throw new CDKException("BondCount only expects one parameter");
          }
          if (!(params[0] instanceof String)) {
              throw new CDKException("The parameter must be of type IBond.Order");
          }
          String bondType = (String) params[0];
          if (bondType.length() > 1 || !"sdtq".contains(bondType)) {
              throw new CDKException("The only allowed values for this parameter are 's', 'd', 't', 'q' and ''.");
          }
          // ok, all should be fine
          order = bondType;
      }
docs: Sets the parameters attribute of the BondCountDescriptor object
  
  @param  params            The new parameters value
  @exception  CDKException  Description of the Exception