code: public static String dashToString( float[] dash, Float shift ) {
          StringBuilder sb = new StringBuilder();
          if (shift != null)
              sb.append(shift);
          for( int i = 0; i < dash.length; i++ ) {
              if (shift != null || i > 0) {
                  sb.append(",");
              }
              sb.append((int) dash[i]);
          }
          return sb.toString();
      }
docs: Convert a dash array to string.
  
  @param dash  the dash to convert.
  @param shift the shift.
  @return the string representation.