@Test public void check() { assertEquals( isEqual, BaseColumnFieldDiffImpl.isEqualOrNull( dcv1, dcv2 ) ); }
public static boolean isEqualOrNull( Object s1, Object s2 ) { if ( s1 == null && s2 == null ) { return true; } else if ( s1 != null && s2 != null && s1.equals( s2 ) ) { return true; } return false; }
BaseColumnFieldDiffImpl implements BaseColumnFieldDiff { public static boolean isEqualOrNull( Object s1, Object s2 ) { if ( s1 == null && s2 == null ) { return true; } else if ( s1 != null && s2 != null && s1.equals( s2 ) ) { return true; } return false; } }
BaseColumnFieldDiffImpl implements BaseColumnFieldDiff { public static boolean isEqualOrNull( Object s1, Object s2 ) { if ( s1 == null && s2 == null ) { return true; } else if ( s1 != null && s2 != null && s1.equals( s2 ) ) { return true; } return false; } BaseColumnFieldDiffImpl();  BaseColumnFieldDiffImpl( String fieldName,
                                    Object oldValue,
                                    Object newValue ); }
BaseColumnFieldDiffImpl implements BaseColumnFieldDiff { public static boolean isEqualOrNull( Object s1, Object s2 ) { if ( s1 == null && s2 == null ) { return true; } else if ( s1 != null && s2 != null && s1.equals( s2 ) ) { return true; } return false; } BaseColumnFieldDiffImpl();  BaseColumnFieldDiffImpl( String fieldName,
                                    Object oldValue,
                                    Object newValue ); String getFieldName(); void setFieldName( String fieldName ); Object getOldValue(); void setOldValue( Object oldValue ); Object getValue(); void setValue( Object newValue ); static boolean hasChanged( String fieldName,
                                      List<BaseColumnFieldDiff> source ); static BaseColumnFieldDiff getDiff( String fieldName,
                                               List<BaseColumnFieldDiff> source ); static boolean isEqualOrNull( Object s1,
                                         Object s2 ); static boolean isEqualOrNull( final DTCellValue52 dcv1,
                                         final DTCellValue52 dcv2 ); static boolean isEqualOrNull( List s1,
                                         List s2 ); static boolean isEqualOrNull( Map s1,
                                         Map s2 ); }
BaseColumnFieldDiffImpl implements BaseColumnFieldDiff { public static boolean isEqualOrNull( Object s1, Object s2 ) { if ( s1 == null && s2 == null ) { return true; } else if ( s1 != null && s2 != null && s1.equals( s2 ) ) { return true; } return false; } BaseColumnFieldDiffImpl();  BaseColumnFieldDiffImpl( String fieldName,
                                    Object oldValue,
                                    Object newValue ); String getFieldName(); void setFieldName( String fieldName ); Object getOldValue(); void setOldValue( Object oldValue ); Object getValue(); void setValue( Object newValue ); static boolean hasChanged( String fieldName,
                                      List<BaseColumnFieldDiff> source ); static BaseColumnFieldDiff getDiff( String fieldName,
                                               List<BaseColumnFieldDiff> source ); static boolean isEqualOrNull( Object s1,
                                         Object s2 ); static boolean isEqualOrNull( final DTCellValue52 dcv1,
                                         final DTCellValue52 dcv2 ); static boolean isEqualOrNull( List s1,
                                         List s2 ); static boolean isEqualOrNull( Map s1,
                                         Map s2 );  }