/** * Gets the hashcode of this object. * * @see java.lang.Object#hashCode() * @return The instance hash code */ @Override public int hashCode() { if ( h == 0 ) { h = 37; h = h * 17 + ( normType != null ? normType.hashCode() : 0 ); h = h * 17 + ( value != null ? value.hashCode() : 0 ); } return h; }
/** * Creates a Value with an initial user provided binary value. * * @param value the binary value to wrap which may be null, or a zero length byte array */ public Value( byte[] value ) { if ( value != null ) { bytes = new byte[value.length]; System.arraycopy( value, 0, bytes, 0, value.length ); } else { bytes = null; } isHR = false; hashCode(); }
/** * Gets the hashcode of this object. * * @see java.lang.Object#hashCode() * @return The instance hash code */ @Override public int hashCode() { if ( h == 0 ) { h = 37; h = h * 17 + ( normType != null ? normType.hashCode() : 0 ); h = h * 17 + ( value != null ? value.hashCode() : 0 ); } return h; }
/** * Gets the hashcode of this object. * * @see java.lang.Object#hashCode() * @return The instance hash code */ @Override public int hashCode() { if ( h == 0 ) { h = 37; h = h * 17 + ( normType != null ? normType.hashCode() : 0 ); h = h * 17 + ( value != null ? value.hashCode() : 0 ); } return h; }
/** * Creates a Value with an initial user provided binary value. * * @param value the binary value to wrap which may be null, or a zero length byte array */ public Value( byte[] value ) { if ( value != null ) { bytes = new byte[value.length]; System.arraycopy( value, 0, bytes, 0, value.length ); } else { bytes = null; } isHR = false; hashCode(); }
/** * Creates a Value with an initial user provided binary value. * * @param value the binary value to wrap which may be null, or a zero length byte array */ public Value( byte[] value ) { if ( value != null ) { bytes = new byte[value.length]; System.arraycopy( value, 0, bytes, 0, value.length ); } else { bytes = null; } isHR = false; hashCode(); }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( value == null ? 0 : value.hashCode() ); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( value == null ? 0 : value.hashCode() ); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( value == null ? 0 : value.hashCode() ); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( dnAttributes ? 1 : 0 ); h = h * 17 + matchingRuleId.hashCode(); h = h * 17 + value.hashCode(); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( dnAttributes ? 1 : 0 ); h = h * 17 + matchingRuleId.hashCode(); h = h * 17 + value.hashCode(); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( dnAttributes ? 1 : 0 ); h = h * 17 + matchingRuleId.hashCode(); h = h * 17 + value.hashCode(); return h; }
/** * Creates a Value with an initial user provided String value. * * @param upValue the value to wrap. It can be null */ public Value( String upValue ) { this.upValue = upValue; // We can't normalize the value, we store it as is normValue = upValue; if ( upValue != null ) { bytes = Strings.getBytesUtf8( upValue ); } hashCode(); }
/** * Creates a Value with an initial user provided String value. * * @param upValue the value to wrap. It can be null */ public Value( String upValue ) { this.upValue = upValue; // We can't normalize the value, we store it as is normValue = upValue; if ( upValue != null ) { bytes = Strings.getBytesUtf8( upValue ); } hashCode(); }
/** * Creates a Value with an initial user provided String value. * * @param upValue the value to wrap. It can be null */ public Value( String upValue ) { this.upValue = upValue; // We can't normalize the value, we store it as is normValue = upValue; if ( upValue != null ) { bytes = Strings.getBytesUtf8( upValue ); } hashCode(); }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } if ( attrId != null ) { hash = hash * 17 + attrId.hashCode(); } if ( attrVal != null ) { hash = hash * 17 + attrVal.hashCode(); } Value reqVal = getAssertionValue(); if ( reqVal != null ) { hash = hash * 17 + reqVal.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } if ( attrId != null ) { hash = hash * 17 + attrId.hashCode(); } if ( attrVal != null ) { hash = hash * 17 + attrVal.hashCode(); } Value reqVal = getAssertionValue(); if ( reqVal != null ) { hash = hash * 17 + reqVal.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }
/** * {@inheritDoc} */ @Override public int hashCode() { int hash = 37; if ( name != null ) { hash = hash * 17 + name.hashCode(); } if ( attrId != null ) { hash = hash * 17 + attrId.hashCode(); } if ( attrVal != null ) { hash = hash * 17 + attrVal.hashCode(); } Value reqVal = getAssertionValue(); if ( reqVal != null ) { hash = hash * 17 + reqVal.hashCode(); } hash = hash * 17 + super.hashCode(); return hash; }