Skip to content

Commit

Permalink
ttools: add grid flag status to TimeSurface hashCode/equals methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtaylor authored and mmpcn committed Nov 27, 2014
1 parent 05ec1ba commit 2dfc752
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -273,6 +273,7 @@ public int hashCode() {
code = 23 * code + PlotUtil.hashCode( tlabel_ );
code = 23 * code + PlotUtil.hashCode( ylabel_ );
code = 23 * code + captioner_.hashCode();
code = 23 * code + ( grid_ ? 11 : 13 );
code = 23 * code + tformat_.hashCode();
return code;
}
Expand All @@ -296,6 +297,7 @@ public boolean equals( Object o ) {
&& PlotUtil.equals( this.tlabel_, this.tlabel_ )
&& PlotUtil.equals( this.ylabel_, other.ylabel_ )
&& this.captioner_.equals( other.captioner_ )
&& this.grid_ == other.grid_
&& this.tformat_.equals( other.tformat_ );
}
else {
Expand Down

0 comments on commit 2dfc752

Please sign in to comment.