String def(final String[] split,final boolean match){
  if (split.length != 4) {
    return "Default line has incorrect number of fields.";
  }
  final String ploidyString=split[2];
  final Ploidy ploidy=getPloidy(ploidyString);
  if (ploidy == null) {
    return "Invalid ploidy value:" + ploidyString;
  }
  final String linearString=split[3];
  final Boolean linear=linear(linearString);
  if (linear == null) {
    return "Invalid linear/circular value:" + linearString;
  }
  if (match) {
    if (mPloidyDefault != null) {
      return "Duplicate default definition.";
    }
    mLinearDefault=linear;
    mPloidyDefault=ploidy;
  }
  return null;
}

String def ( final String [ ] split , final boolean match ) { if ( split . length != 4 ) { return "Default line has incorrect number of fields." ; } final String ploidyString = split [ 2 ] ; final Ploidy ploidy = getPloidy ( ploidyString ) ; if ( ploidy == null ) { return "Invalid ploidy value:" + ploidyString ; } final String linearString = split [ 3 ] ; final Boolean linear = linear ( linearString ) ; if ( linear == null ) { return "Invalid linear/circular value:" + linearString ; } if ( match ) { if ( mPloidyDefault != null ) { return "Duplicate default definition." ; } mLinearDefault = linear ; mPloidyDefault = ploidy ; } return null ; }
parse a default line .
