Skip to content

Instantly share code, notes, and snippets.

@highsource
Created December 19, 2014 10:46

Revisions

  1. highsource renamed this gist Dec 19, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. highsource created this gist Dec 19, 2014.
    44 changes: 44 additions & 0 deletions gistfile1.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    public int hashCode() {
    int currentHashCode = 1;
    {
    currentHashCode = (currentHashCode* 31);
    USAddress theShipTo;
    theShipTo = this.getShipTo();
    if (theShipTo!= null) {
    currentHashCode += theShipTo.hashCode();
    }
    }
    {
    currentHashCode = (currentHashCode* 31);
    USAddress theBillTo;
    theBillTo = this.getBillTo();
    if (theBillTo!= null) {
    currentHashCode += theBillTo.hashCode();
    }
    }
    {
    currentHashCode = (currentHashCode* 31);
    String theComment;
    theComment = this.getComment();
    if (theComment!= null) {
    currentHashCode += theComment.hashCode();
    }
    }
    {
    currentHashCode = (currentHashCode* 31);
    Items theItems;
    theItems = this.getItems();
    if (theItems!= null) {
    currentHashCode += theItems.hashCode();
    }
    }
    {
    currentHashCode = (currentHashCode* 31);
    XMLGregorianCalendar theOrderDate;
    theOrderDate = this.getOrderDate();
    if (theOrderDate!= null) {
    currentHashCode += theOrderDate.hashCode();
    }
    }
    return currentHashCode;
    }