public void checkKey(Object key) throws PartitionedRegionException {
  if (!hasHash) {
    return;
  }
  if (key == null) {
    return;
  }
  int expected=key.hashCode();
  if (expected == keyHash) {
    return;
  }
  throw new PartitionedRegionException("Object hashCode inconsistent between cache peers. Here = " + expected + "; peer calculated = "+ keyHash);
}

public void checkKey ( Object key ) throws PartitionedRegionException { if ( ! hasHash ) { return ; } if ( key == null ) { return ; } int expected = key . hashCode ( ) ; if ( expected == keyHash ) { return ; } throw new PartitionedRegionException ( "Object hashCode inconsistent between cache peers. Here = " + expected + "; peer calculated = " + keyHash ) ; }
if possible , validate the given key ' s hashcode against any that was returned by the peer .
