public DiffBuilder append(final String fieldName, final long[] lhs,
            final long[] rhs) {
        validateFieldNameNotNull(fieldName);

        if (objectsTriviallyEqual) {
            return this;
        }
        if (!Arrays.equals(lhs, rhs)) {
            diffs.add(new Diff<Long[]>(fieldName) {
                private static final long serialVersionUID = 1L;

                @Override
                public Long[] getLeft() {
                    return ArrayUtils.toObject(lhs);
                }

                @Override
                public Long[] getRight() {
                    return ArrayUtils.toObject(rhs);
                }
            });
        }
        return this;
    }
public DiffBuilder append ( final String fieldName , final long [ ] lhs , final long [ ] rhs ) { validateFieldNameNotNull ( fieldName ) ; if ( objectsTriviallyEqual ) { return this ; } if ( ! Arrays . equals ( lhs , rhs ) ) { diffs . add ( new Diff < Long [ ] > ( fieldName ) { private static final long serialVersionUID = 1L ; @ Override public Long [ ] getLeft ( ) { return ArrayUtils . toObject ( lhs ) ; } @ Override public Long [ ] getRight ( ) { return ArrayUtils . toObject ( rhs ) ; } } ) ; } return this ; }
<p>
Test if two {@code long[]}s are equal.
</p>

@param fieldName
the field name
@param lhs
the left hand {@code long[]}
@param rhs
the right hand {@code long[]}
@return this
@throws IllegalArgumentException
if field name is {@code null}