public boolean compareToBuffer(FieldList record)
    {
        boolean bBufferEqual = true;
        this.resetPosition(); // Start at the first field
        int iFieldCount = record.getFieldCount();   // Number of fields to read in
        for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq <= iFieldCount + Constants.MAIN_FIELD - 1; iFieldSeq++)
        {
            FieldInfo field = record.getField(iFieldSeq);
            if (!this.skipField(field))
                bBufferEqual = this.compareNextToField(field);
            if (!bBufferEqual)
                break;
        }
        return bBufferEqual;
    }
public boolean compareToBuffer ( FieldList record ) { boolean bBufferEqual = true ; this . resetPosition ( ) ; int iFieldCount = record . getFieldCount ( ) ; for ( int iFieldSeq = Constants . MAIN_FIELD ; iFieldSeq <= iFieldCount + Constants . MAIN_FIELD - 1 ; iFieldSeq ++ ) { FieldInfo field = record . getField ( iFieldSeq ) ; if ( ! this . skipField ( field ) ) bBufferEqual = this . compareNextToField ( field ) ; if ( ! bBufferEqual ) break ; } return bBufferEqual ; }
Compare this output buffer to all the fields.
This is a utility method that compares the record.
@param record The target record.
@return True if they are equal.