@Test public void testEquals() { StaticDataRow dataRow = new StaticDataRow(); assertThat( dataRow.equals( dataRow ), is( equalTo( true ) ) ); assertThat( dataRow.equals( "incorrect" ), is( equalTo( false ) ) ); String[] names = new String[]{ "name_0" }; Object[] values = new Object[]{ "value_0" }; StaticDataRow newDataRow = new StaticDataRow( names, values ); assertThat( dataRow.equals( newDataRow ), is( equalTo( false ) ) ); dataRow.setData( names, new Object[]{ "test_val" } ); assertThat( dataRow.equals( newDataRow ), is( equalTo( false ) ) ); dataRow.setData( names, values ); assertThat( dataRow.equals( newDataRow ), is( equalTo( true ) ) ); }
public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof StaticDataRow ) ) { return false; } final StaticDataRow that = (StaticDataRow) o; if ( !Arrays.equals( names, that.names ) ) { return false; } if ( !equalsMap( that.values ) ) { return false; } return true; }
StaticDataRow implements DataRow { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof StaticDataRow ) ) { return false; } final StaticDataRow that = (StaticDataRow) o; if ( !Arrays.equals( names, that.names ) ) { return false; } if ( !equalsMap( that.values ) ) { return false; } return true; } }
StaticDataRow implements DataRow { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof StaticDataRow ) ) { return false; } final StaticDataRow that = (StaticDataRow) o; if ( !Arrays.equals( names, that.names ) ) { return false; } if ( !equalsMap( that.values ) ) { return false; } return true; } StaticDataRow(); protected  StaticDataRow( final StaticDataRow dataRow );  StaticDataRow( final DataRow dataRow );  StaticDataRow( final String[] names, final Object[] values );  StaticDataRow( final Map<String, Object> parameterValues ); }
StaticDataRow implements DataRow { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof StaticDataRow ) ) { return false; } final StaticDataRow that = (StaticDataRow) o; if ( !Arrays.equals( names, that.names ) ) { return false; } if ( !equalsMap( that.values ) ) { return false; } return true; } StaticDataRow(); protected  StaticDataRow( final StaticDataRow dataRow );  StaticDataRow( final DataRow dataRow );  StaticDataRow( final String[] names, final Object[] values );  StaticDataRow( final Map<String, Object> parameterValues ); String[] getColumnNames(); Object get( final String col ); boolean isChanged( final String name ); boolean equals( final Object o ); int hashCode(); }
StaticDataRow implements DataRow { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof StaticDataRow ) ) { return false; } final StaticDataRow that = (StaticDataRow) o; if ( !Arrays.equals( names, that.names ) ) { return false; } if ( !equalsMap( that.values ) ) { return false; } return true; } StaticDataRow(); protected  StaticDataRow( final StaticDataRow dataRow );  StaticDataRow( final DataRow dataRow );  StaticDataRow( final String[] names, final Object[] values );  StaticDataRow( final Map<String, Object> parameterValues ); String[] getColumnNames(); Object get( final String col ); boolean isChanged( final String name ); boolean equals( final Object o ); int hashCode();  }