private float[] convertDashListToArray(List<Float> dashList){
  if (dashList == null) {
    return null;
  }
  float[] dashes=new float[dashList.size()];
  int i=0;
  for (  Float f : dashList) {
    dashes[i++]=(f != null ? f : Float.NaN);
  }
  return dashes;
}

private float [ ] convertDashListToArray ( List < Float > dashList ) { if ( dashList == null ) { return null ; } float [ ] dashes = new float [ dashList . size ( ) ] ; int i = 0 ; for ( Float f : dashList ) { dashes [ i ++ ] = ( f != null ? f : Float . NaN ) ; } return dashes ; }
convert dash list to array .
