public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
public int hashCode() { return ObjectUtils.hashOrZero( this.key ) ^ ObjectUtils.hashOrZero( this.value ); } }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
/** * returns a hash-code for an array consistent with Arrays.equals( ... ) */ public static int hashArray(Object[] oo) { int len = oo.length; int out = len; for (int i = 0; i < len; ++i) { //we rotate the bits of the element hashes //around so that the hash has some loaction //dependency int elem_hash = ObjectUtils.hashOrZero(oo[i]); int rot = i % 32; int rot_hash = elem_hash >>> rot; rot_hash |= elem_hash << (32 - rot); out ^= rot_hash; } return out; }
/** * returns a hash-code for an array consistent with Arrays.equals( ... ) */ public static int hashArray(Object[] oo) { int len = oo.length; int out = len; for (int i = 0; i < len; ++i) { //we rotate the bits of the element hashes //around so that the hash has some loaction //dependency int elem_hash = ObjectUtils.hashOrZero(oo[i]); int rot = i % 32; int rot_hash = elem_hash >>> rot; rot_hash |= elem_hash << (32 - rot); out ^= rot_hash; } return out; }
/** * returns a hash-code for an array consistent with Arrays.equals( ... ) */ public static int hashArray(Object[] oo) { int len = oo.length; int out = len; for (int i = 0; i < len; ++i) { //we rotate the bits of the element hashes //around so that the hash has some loaction //dependency int elem_hash = ObjectUtils.hashOrZero(oo[i]); int rot = i % 32; int rot_hash = elem_hash >>> rot; rot_hash |= elem_hash << (32 - rot); out ^= rot_hash; } return out; }
public int hashCode() { return this.level.hashCode() ^ this.text.hashCode() ^ ObjectUtils.hashOrZero( this.exception ); }
static int hashCode(StatementCacheKey _this) { return _this.physicalConnection.hashCode() ^ _this.stmtText.hashCode() ^ (_this.is_callable ? 1 : 0) ^ _this.result_set_type ^ _this.result_set_concurrency ^ ArrayUtils.hashOrZeroArray( _this.columnIndexes ) ^ ArrayUtils.hashOrZeroArray( _this.columnNames ) ^ ObjectUtils.hashOrZero( _this.autogeneratedKeys ) ^ //this is okay -- genuine constants are non-zer0 ObjectUtils.hashOrZero( _this.resultSetHoldability ); //this is okay -- genuine constants are non-zer0 }
static int hashCode(StatementCacheKey _this) { return _this.physicalConnection.hashCode() ^ _this.stmtText.hashCode() ^ (_this.is_callable ? 1 : 0) ^ _this.result_set_type ^ _this.result_set_concurrency ^ ArrayUtils.hashOrZeroArray( _this.columnIndexes ) ^ ArrayUtils.hashOrZeroArray( _this.columnNames ) ^ ObjectUtils.hashOrZero( _this.autogeneratedKeys ) ^ //this is okay -- genuine constants are non-zer0 ObjectUtils.hashOrZero( _this.resultSetHoldability ); //this is okay -- genuine constants are non-zer0 }
static int hashCode(StatementCacheKey _this) { return _this.physicalConnection.hashCode() ^ _this.stmtText.hashCode() ^ (_this.is_callable ? 1 : 0) ^ _this.result_set_type ^ _this.result_set_concurrency ^ ArrayUtils.hashOrZeroArray( _this.columnIndexes ) ^ ArrayUtils.hashOrZeroArray( _this.columnNames ) ^ ObjectUtils.hashOrZero( _this.autogeneratedKeys ) ^ //this is okay -- genuine constants are non-zer0 ObjectUtils.hashOrZero( _this.resultSetHoldability ); //this is okay -- genuine constants are non-zer0 }
static int hashCode(StatementCacheKey _this) { return _this.physicalConnection.hashCode() ^ _this.stmtText.hashCode() ^ (_this.is_callable ? 1 : 0) ^ _this.result_set_type ^ _this.result_set_concurrency ^ ArrayUtils.hashOrZeroArray( _this.columnIndexes ) ^ ArrayUtils.hashOrZeroArray( _this.columnNames ) ^ ObjectUtils.hashOrZero( _this.autogeneratedKeys ) ^ //this is okay -- genuine constants are non-zer0 ObjectUtils.hashOrZero( _this.resultSetHoldability ); //this is okay -- genuine constants are non-zer0 }