no.nhn.schemas.reg.hprv2.WSArrayOfTilleggskompetanse 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 ArrayOfTilleggskompetanse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ArrayOfTilleggskompetanse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Tilleggskompetanse" type="{http://schemas.nhn.no/reg/HPRv2}Tilleggskompetanse" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfTilleggskompetanse", propOrder = {
"tilleggskompetanses"
})
public class WSArrayOfTilleggskompetanse
implements Equals, HashCode
{
@XmlElement(name = "Tilleggskompetanse", nillable = true)
protected List tilleggskompetanses;
/**
* Gets the value of the tilleggskompetanses 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 tilleggskompetanses property.
*
*
* For example, to add a new item, do as follows:
*
* getTilleggskompetanses().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link WSTilleggskompetanse }
*
*
*/
public List getTilleggskompetanses() {
if (tilleggskompetanses == null) {
tilleggskompetanses = new ArrayList();
}
return this.tilleggskompetanses;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
List theTilleggskompetanses;
theTilleggskompetanses = (((this.tilleggskompetanses!= null)&&(!this.tilleggskompetanses.isEmpty()))?this.getTilleggskompetanses():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tilleggskompetanses", theTilleggskompetanses), currentHashCode, theTilleggskompetanses);
}
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 WSArrayOfTilleggskompetanse)) {
return false;
}
if (this == object) {
return true;
}
final WSArrayOfTilleggskompetanse that = ((WSArrayOfTilleggskompetanse) object);
{
List lhsTilleggskompetanses;
lhsTilleggskompetanses = (((this.tilleggskompetanses!= null)&&(!this.tilleggskompetanses.isEmpty()))?this.getTilleggskompetanses():null);
List rhsTilleggskompetanses;
rhsTilleggskompetanses = (((that.tilleggskompetanses!= null)&&(!that.tilleggskompetanses.isEmpty()))?that.getTilleggskompetanses():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "tilleggskompetanses", lhsTilleggskompetanses), LocatorUtils.property(thatLocator, "tilleggskompetanses", rhsTilleggskompetanses), lhsTilleggskompetanses, rhsTilleggskompetanses)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public WSArrayOfTilleggskompetanse withTilleggskompetanses(WSTilleggskompetanse... values) {
if (values!= null) {
for (WSTilleggskompetanse value: values) {
getTilleggskompetanses().add(value);
}
}
return this;
}
public WSArrayOfTilleggskompetanse withTilleggskompetanses(Collection values) {
if (values!= null) {
getTilleggskompetanses().addAll(values);
}
return this;
}
}