code: @Override
      public void setOrder(Order order) {
          this.order = order;
          if (order != null) {
              switch (order) {
                  case SINGLE:
                      this.electronCount = 2;
                      break;
                  case DOUBLE:
                      this.electronCount = 4;
                      break;
                  case TRIPLE:
                      this.electronCount = 6;
                      break;
                  case QUADRUPLE:
                      this.electronCount = 8;
                      break;
                  case QUINTUPLE:
                      this.electronCount = 10;
                      break;
                  case SEXTUPLE:
                      this.electronCount = 12;
                      break;
                  default:
                      this.electronCount = 0;
                      break;
              }
          }
      }
docs: Sets the bond order of this bond.
  
  @param order The bond order to be assigned to this bond
  @see org.openscience.cdk.CDKConstants
  org.openscience.cdk.CDKConstants for predefined values.
  @see #getOrder