void markNewCatalog( String catalog ) //intentionally unsync'd -- catalog_nondefault is marked volatile { this.catalog_nondefault = ObjectUtils.eqOrBothNull(catalog, dflt_catalog); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
void markNewCatalog( String catalog ) //intentionally unsync'd -- catalog_nondefault is marked volatile { this.catalog_nondefault = ObjectUtils.eqOrBothNull(catalog, dflt_catalog); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
void markNewCatalog( String catalog ) //intentionally unsync'd -- catalog_nondefault is marked volatile { this.catalog_nondefault = ObjectUtils.eqOrBothNull(catalog, dflt_catalog); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
void markNewCatalog( String catalog ) //intentionally unsync'd -- catalog_nondefault is marked volatile { this.catalog_nondefault = ObjectUtils.eqOrBothNull(catalog, dflt_catalog); }
public int hashCode() { return ObjectUtils.hashOrZero( this.key ) ^ ObjectUtils.hashOrZero( this.value ); } }
private static boolean diff( Object a, Object b ) { return !ObjectUtils.eqOrBothNull(a, b ); }
public int hashCode() { return ObjectUtils.hashOrZero(username) ^ ObjectUtils.hashOrZero(password); }
private static boolean diff( Object a, Object b ) { return !ObjectUtils.eqOrBothNull(a, b ); }
/** * 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 boolean equals(Object o) { if (o instanceof Map.Entry) { Map.Entry other = (Map.Entry) o; return ObjectUtils.eqOrBothNull( this.key , other.getKey() ) && ObjectUtils.eqOrBothNull( this.value , other.getValue() ); } else return false; }
/** * 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 boolean equals(Object o) { if (this == o) return true; else if (o != null && this.getClass() == o.getClass()) { DbAuth other = (DbAuth) o; return ObjectUtils.eqOrBothNull(this.username, other.username) && ObjectUtils.eqOrBothNull(this.password, other.password); } else return false; }
/** * 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 boolean equals(Object o) { if (this == o) return true; else if (o != null && this.getClass() == o.getClass()) { DbAuth other = (DbAuth) o; return ObjectUtils.eqOrBothNull(this.username, other.username) && ObjectUtils.eqOrBothNull(this.password, other.password); } else return false; }
public int hashCode() { return this.level.hashCode() ^ this.text.hashCode() ^ ObjectUtils.hashOrZero( this.exception ); }
public boolean equals(Object o) { if (this == o) return true; else if (o != null && this.getClass() == o.getClass()) { DbAuth other = (DbAuth) o; return ObjectUtils.eqOrBothNull(this.username, other.username) && ObjectUtils.eqOrBothNull(this.password, other.password); } else return false; }
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 }