@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((indId == null) ? 0 : indId.hashCode());
   result = prime * result + ((indFname == null) ? 0 : indFname.hashCode());
   result = prime * result + ((indMname == null) ? 0 : indMname.hashCode());
   result = prime * result + ((indLname == null) ? 0 : indLname.hashCode());
   result = prime * result + ((indEmail == null) ? 0 : indEmail.hashCode());
   result = prime * result + ((indQualification == null) ? 0 : indQualification.hashCode());
   result = prime * result + ((indAreaOfExperties == null) ? 0 : indAreaOfExperties.hashCode());
   result = prime * result + ((indExperinceYears == null) ? 0 : indExperinceYears.hashCode());
   result = prime * result + ((indAboutExperience == null) ? 0 : indAboutExperience.hashCode());
   result = prime * result + ((indCellno == null) ? 0 : indCellno.hashCode());
   result = prime * result + ((indAddress == null) ? 0 : indAddress.hashCode());
   result = prime * result + ((indCity == null) ? 0 : indCity.hashCode());
   result = prime * result + ((indState == null) ? 0 : indState.hashCode());
   result = prime * result + ((indCreationDate == null) ? 0 : indCreationDate.hashCode());
   return result;
 }
Example #2
0
  /**
   * Overrides the java.lang.Object.hashCode method.
   *
   * <p>The following steps came from <b>Effective Java Programming Language Guide</b> by Joshua
   * Bloch, Chapter 3
   *
   * @return a hash code value for the object.
   */
  public int hashCode() {
    int result = 17;

    long tmp;
    if (_requestedPage != null
        && !org.castor.core.util.CycleBreaker.startingToCycle(_requestedPage)) {
      result = 37 * result + _requestedPage.hashCode();
      org.castor.core.util.CycleBreaker.releaseCycleHandle(_requestedPage);
    }
    if (_numberOfRows != null
        && !org.castor.core.util.CycleBreaker.startingToCycle(_numberOfRows)) {
      result = 37 * result + _numberOfRows.hashCode();
      org.castor.core.util.CycleBreaker.releaseCycleHandle(_numberOfRows);
    }
    if (_pagingInformation != null
        && !org.castor.core.util.CycleBreaker.startingToCycle(_pagingInformation)) {
      result = 37 * result + _pagingInformation.hashCode();
      org.castor.core.util.CycleBreaker.releaseCycleHandle(_pagingInformation);
    }

    return result;
  }
 /* (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   return ((simpleIntKey != null) ? simpleIntKey.hashCode() : super.hashCode())
       ^ ((simpleRefKey != null) ? simpleRefKey.hashCode() : super.hashCode())
       ^ ((compoundRefKey != null) ? compoundRefKey.hashCode() : super.hashCode());
 }
 public int hashCode() {
   return (id != null) ? id.hashCode() : super.hashCode();
 }