public boolean compareNextToField ( FieldInfo field ) // Must be to call right Get calls { Object objNext = this . getNextData ( ) ; if ( objNext == DATA_ERROR ) return false ; // EOF if ( objNext == DATA_EOF ) return false ; // EOF if ( objNext == DATA_SKIP ) return true ; // Don't set this field Object objField = field . getData ( ) ; if ( ( objNext == null ) || ( objField == null ) ) { if ( ( objNext == null ) && ( objField == null ) ) return true ; return false ; } return objNext . equals ( objField ) ; }
Compare this fields with the next data in the buffer . This is a utility method that compares the record .