public final boolean equalsFields ( int [ ] positions , Value [ ] searchValues , Value [ ] deserializationHolders ) { for ( int i = 0 ; i < positions . length ; i ++ ) { final Value v = getField ( positions [ i ] , deserializationHolders [ i ] ) ; if ( v == null || ( ! v . equals ( searchValues [ i ] ) ) ) { return false ; } } return true ; }
Checks the values of this record and a given list of values at specified positions for equality . The values of this record are deserialized and compared against the corresponding search value . The position specify which values are compared . The method returns true if the values on all positions are equal and false otherwise .