View Javadoc

1   
2   package com.hack23.cia.service.user.api;
3   
4   import java.io.Serializable;
5   import javax.xml.bind.annotation.XmlAccessType;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlElement;
8   import javax.xml.bind.annotation.XmlType;
9   import org.jvnet.jaxb2_commons.lang.Equals;
10  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
11  import org.jvnet.jaxb2_commons.lang.HashCode;
12  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
13  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
14  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
15  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
16  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
17  
18  
19  /***
20   * <p>Java class for NoSuchUser complex type.
21   * 
22   * <p>The following schema fragment specifies the expected content contained within this class.
23   * 
24   * <pre>
25   * &lt;complexType name="NoSuchUser">
26   *   &lt;complexContent>
27   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28   *       &lt;sequence>
29   *         &lt;element name="userId" type="{http://www.w3.org/2001/XMLSchema}int"/>
30   *       &lt;/sequence>
31   *     &lt;/restriction>
32   *   &lt;/complexContent>
33   * &lt;/complexType>
34   * </pre>
35   * 
36   * 
37   */
38  @XmlAccessorType(XmlAccessType.FIELD)
39  @XmlType(name = "NoSuchUser", propOrder = {
40      "userId"
41  })
42  public class NoSuchUser
43      implements Serializable, Equals, HashCode
44  {
45  
46      @XmlElement(required = true, type = Integer.class, nillable = true)
47      protected Integer userId;
48  
49      /***
50       * Gets the value of the userId property.
51       * 
52       * @return
53       *     possible object is
54       *     {@link Integer }
55       *     
56       */
57      public Integer getUserId() {
58          return userId;
59      }
60  
61      /***
62       * Sets the value of the userId property.
63       * 
64       * @param value
65       *     allowed object is
66       *     {@link Integer }
67       *     
68       */
69      public void setUserId(Integer value) {
70          this.userId = value;
71      }
72  
73      public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
74          int currentHashCode = 1;
75          {
76              Integer theUserId;
77              theUserId = this.getUserId();
78              currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "userId", theUserId), currentHashCode, theUserId);
79          }
80          return currentHashCode;
81      }
82  
83      public int hashCode() {
84          final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
85          return this.hashCode(null, strategy);
86      }
87  
88      public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
89          if (!(object instanceof NoSuchUser)) {
90              return false;
91          }
92          if (this == object) {
93              return true;
94          }
95          final NoSuchUser that = ((NoSuchUser) object);
96          {
97              Integer lhsUserId;
98              lhsUserId = this.getUserId();
99              Integer rhsUserId;
100             rhsUserId = that.getUserId();
101             if (!strategy.equals(LocatorUtils.property(thisLocator, "userId", lhsUserId), LocatorUtils.property(thatLocator, "userId", rhsUserId), lhsUserId, rhsUserId)) {
102                 return false;
103             }
104         }
105         return true;
106     }
107 
108     public boolean equals(Object object) {
109         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
110         return equals(null, null, object, strategy);
111     }
112 
113 }