/** * This class overwrites equals. To ensure proper functioning of HashTable, * hashCode must be overwritten, too. * * @return hash code of the object. */ @Override public int hashCode() { int code = 29; if ( ac != null ) { code = 29 * code + ac.hashCode(); } if ( cvTopic != null ) { code = 29 * code + cvTopic.hashCode(); } if ( null != annotationText ) { code = 29 * code + annotationText.hashCode(); } return code; }
/** * This class overwrites equals. To ensure proper functioning of HashTable, * hashCode must be overwritten, too. * * @return hash code of the object. */ @Override public int hashCode() { if (ac != null) return super.hashCode(); int code = 29; if ( cvTopic != null ) { code = 29 * code + cvTopic.hashCode(); } if ( null != annotationText ) { code = 29 * code + annotationText.hashCode(); } return code; }
/** * This class overwrites equals. To ensure proper functioning of HashTable, * hashCode must be overwritten, too. * * @return hash code of the object. */ @Override public int hashCode() { if (ac != null) return super.hashCode(); int code = 29; if ( cvTopic != null ) { code = 29 * code + cvTopic.hashCode(); } if ( null != annotationText ) { code = 29 * code + annotationText.hashCode(); } return code; }
@Override public int hashCode() { int result; long temp; result = ( pk != null ? pk.hashCode() : 0 ); result = 31 * result + ( shortLabel1 != null ? shortLabel1.hashCode() : 0 ); result = 31 * result + ( shortLabel2 != null ? shortLabel2.hashCode() : 0 ); result = 31 * result + ( taxid != null ? taxid.hashCode() : 0 ); temp = weight != +0.0d ? Double.doubleToLongBits( weight ) : 0L; result = 31 * result + ( int ) ( temp ^ ( temp >>> 32 ) ); result = 31 * result + graphId; result = 31 * result + ( experiment != null ? experiment.hashCode() : 0 ); result = 31 * result + ( detectionMethod != null ? detectionMethod.hashCode() : 0 ); result = 31 * result + ( pubmedId != null ? pubmedId.hashCode() : 0 ); return result; } }