no.nhn.schemas.reg.hprv2.WSPaginertResultatsett Maven / Gradle / Ivy
package no.nhn.schemas.reg.hprv2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for PaginertResultatsett complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PaginertResultatsett">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Personer" type="{http://schemas.nhn.no/reg/HPRv2}ArrayOfPerson" minOccurs="0"/>
* <element name="ResultaterPerSide" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="ResultaterTotalt" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="Side" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaginertResultatsett", propOrder = {
"personer",
"resultaterPerSide",
"resultaterTotalt",
"side"
})
public class WSPaginertResultatsett
implements Equals, HashCode
{
@XmlElement(name = "Personer", nillable = true)
protected WSArrayOfPerson personer;
@XmlElement(name = "ResultaterPerSide")
protected Integer resultaterPerSide;
@XmlElement(name = "ResultaterTotalt")
protected Integer resultaterTotalt;
@XmlElement(name = "Side")
protected Integer side;
/**
* Gets the value of the personer property.
*
* @return
* possible object is
* {@link WSArrayOfPerson }
*
*/
public WSArrayOfPerson getPersoner() {
return personer;
}
/**
* Sets the value of the personer property.
*
* @param value
* allowed object is
* {@link WSArrayOfPerson }
*
*/
public void setPersoner(WSArrayOfPerson value) {
this.personer = value;
}
/**
* Gets the value of the resultaterPerSide property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getResultaterPerSide() {
return resultaterPerSide;
}
/**
* Sets the value of the resultaterPerSide property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setResultaterPerSide(Integer value) {
this.resultaterPerSide = value;
}
/**
* Gets the value of the resultaterTotalt property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getResultaterTotalt() {
return resultaterTotalt;
}
/**
* Sets the value of the resultaterTotalt property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setResultaterTotalt(Integer value) {
this.resultaterTotalt = value;
}
/**
* Gets the value of the side property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSide() {
return side;
}
/**
* Sets the value of the side property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSide(Integer value) {
this.side = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
WSArrayOfPerson thePersoner;
thePersoner = this.getPersoner();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "personer", thePersoner), currentHashCode, thePersoner);
}
{
Integer theResultaterPerSide;
theResultaterPerSide = this.getResultaterPerSide();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resultaterPerSide", theResultaterPerSide), currentHashCode, theResultaterPerSide);
}
{
Integer theResultaterTotalt;
theResultaterTotalt = this.getResultaterTotalt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resultaterTotalt", theResultaterTotalt), currentHashCode, theResultaterTotalt);
}
{
Integer theSide;
theSide = this.getSide();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "side", theSide), currentHashCode, theSide);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof WSPaginertResultatsett)) {
return false;
}
if (this == object) {
return true;
}
final WSPaginertResultatsett that = ((WSPaginertResultatsett) object);
{
WSArrayOfPerson lhsPersoner;
lhsPersoner = this.getPersoner();
WSArrayOfPerson rhsPersoner;
rhsPersoner = that.getPersoner();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personer", lhsPersoner), LocatorUtils.property(thatLocator, "personer", rhsPersoner), lhsPersoner, rhsPersoner)) {
return false;
}
}
{
Integer lhsResultaterPerSide;
lhsResultaterPerSide = this.getResultaterPerSide();
Integer rhsResultaterPerSide;
rhsResultaterPerSide = that.getResultaterPerSide();
if (!strategy.equals(LocatorUtils.property(thisLocator, "resultaterPerSide", lhsResultaterPerSide), LocatorUtils.property(thatLocator, "resultaterPerSide", rhsResultaterPerSide), lhsResultaterPerSide, rhsResultaterPerSide)) {
return false;
}
}
{
Integer lhsResultaterTotalt;
lhsResultaterTotalt = this.getResultaterTotalt();
Integer rhsResultaterTotalt;
rhsResultaterTotalt = that.getResultaterTotalt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "resultaterTotalt", lhsResultaterTotalt), LocatorUtils.property(thatLocator, "resultaterTotalt", rhsResultaterTotalt), lhsResultaterTotalt, rhsResultaterTotalt)) {
return false;
}
}
{
Integer lhsSide;
lhsSide = this.getSide();
Integer rhsSide;
rhsSide = that.getSide();
if (!strategy.equals(LocatorUtils.property(thisLocator, "side", lhsSide), LocatorUtils.property(thatLocator, "side", rhsSide), lhsSide, rhsSide)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSPaginertResultatsett withPersoner(WSArrayOfPerson value) {
setPersoner(value);
return this;
}
public WSPaginertResultatsett withResultaterPerSide(Integer value) {
setResultaterPerSide(value);
return this;
}
public WSPaginertResultatsett withResultaterTotalt(Integer value) {
setResultaterTotalt(value);
return this;
}
public WSPaginertResultatsett withSide(Integer value) {
setSide(value);
return this;
}
}