public int hashCode(){
  int hash=Float.floatToIntBits(width);
  hash=hash * 31 + join;
  hash=hash * 31 + cap;
  hash=hash * 31 + Float.floatToIntBits(miterlimit);
  if (dash != null) {
    hash=hash * 31 + Float.floatToIntBits(dash_phase);
    for (int i=0; i < dash.length; i++) {
      hash=hash * 31 + Float.floatToIntBits(dash[i]);
    }
  }
  return hash;
}

public int hashCode ( ) { int hash = Float . floatToIntBits ( width ) ; hash = hash * 31 + join ; hash = hash * 31 + cap ; hash = hash * 31 + Float . floatToIntBits ( miterlimit ) ; if ( dash != null ) { hash = hash * 31 + Float . floatToIntBits ( dash_phase ) ; for ( int i = 0 ; i < dash . length ; i ++ ) { hash = hash * 31 + Float . floatToIntBits ( dash [ i ] ) ; } } return hash ; }
returns the hashcode for this stroke .
