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