public void removeBandwidth(String name){
  if (name == null) {
    throw new NullPointerException("null bandwidth type");
  }
 else {
    int i=0;
    for (i=0; i < bandwidthFields.size(); i++) {
      BandwidthField bandwidthField=(BandwidthField)bandwidthFields.elementAt(i);
      String type=bandwidthField.getBwtype();
      if (type != null && type.equals(name))       break;
    }
    if (i < bandwidthFields.size())     bandwidthFields.removeElementAt(i);
  }
}

public void removeBandwidth ( String name ) { if ( name == null ) { throw new NullPointerException ( "null bandwidth type" ) ; } else { int i = 0 ; for ( i = 0 ; i < bandwidthFields . size ( ) ; i ++ ) { BandwidthField bandwidthField = ( BandwidthField ) bandwidthFields . elementAt ( i ) ; String type = bandwidthField . getBwtype ( ) ; if ( type != null && type . equals ( name ) ) break ; } if ( i < bandwidthFields . size ( ) ) bandwidthFields . removeElementAt ( i ) ; } }
removes the specified bandwidth type .
