no.nhn.schemas.reg.hprv2.WSArrayOfRekvisisjonsrett Maven / Gradle / Ivy
package no.nhn.schemas.reg.hprv2;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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 ArrayOfRekvisisjonsrett complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ArrayOfRekvisisjonsrett">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Rekvisisjonsrett" type="{http://schemas.nhn.no/reg/HPRv2}Rekvisisjonsrett" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfRekvisisjonsrett", propOrder = {
"rekvisisjonsretts"
})
public class WSArrayOfRekvisisjonsrett
implements Equals, HashCode
{
@XmlElement(name = "Rekvisisjonsrett", nillable = true)
protected List rekvisisjonsretts;
/**
* Gets the value of the rekvisisjonsretts property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the rekvisisjonsretts property.
*
*
* For example, to add a new item, do as follows:
*
* getRekvisisjonsretts().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link WSRekvisisjonsrett }
*
*
*/
public List getRekvisisjonsretts() {
if (rekvisisjonsretts == null) {
rekvisisjonsretts = new ArrayList();
}
return this.rekvisisjonsretts;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
List theRekvisisjonsretts;
theRekvisisjonsretts = (((this.rekvisisjonsretts!= null)&&(!this.rekvisisjonsretts.isEmpty()))?this.getRekvisisjonsretts():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rekvisisjonsretts", theRekvisisjonsretts), currentHashCode, theRekvisisjonsretts);
}
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 WSArrayOfRekvisisjonsrett)) {
return false;
}
if (this == object) {
return true;
}
final WSArrayOfRekvisisjonsrett that = ((WSArrayOfRekvisisjonsrett) object);
{
List lhsRekvisisjonsretts;
lhsRekvisisjonsretts = (((this.rekvisisjonsretts!= null)&&(!this.rekvisisjonsretts.isEmpty()))?this.getRekvisisjonsretts():null);
List rhsRekvisisjonsretts;
rhsRekvisisjonsretts = (((that.rekvisisjonsretts!= null)&&(!that.rekvisisjonsretts.isEmpty()))?that.getRekvisisjonsretts():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "rekvisisjonsretts", lhsRekvisisjonsretts), LocatorUtils.property(thatLocator, "rekvisisjonsretts", rhsRekvisisjonsretts), lhsRekvisisjonsretts, rhsRekvisisjonsretts)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSArrayOfRekvisisjonsrett withRekvisisjonsretts(WSRekvisisjonsrett... values) {
if (values!= null) {
for (WSRekvisisjonsrett value: values) {
getRekvisisjonsretts().add(value);
}
}
return this;
}
public WSArrayOfRekvisisjonsrett withRekvisisjonsretts(Collection values) {
if (values!= null) {
getRekvisisjonsretts().addAll(values);
}
return this;
}
}