io.atlasmap.xml.v2.XmlEnumFields Maven / Gradle / Ivy
package io.atlasmap.xml.v2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class XmlEnumFields implements Serializable {
private static final long serialVersionUID = 1L;
protected List xmlEnumField;
/**
* Gets the value of the xmlEnumField 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 xmlEnumField property.
*
*
* For example, to add a new item, do as follows:
*
* getXmlEnumField().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlEnumField }
* @return A list of {@link XmlEnumField}
*
*/
public List getXmlEnumField() {
if (xmlEnumField == null) {
xmlEnumField = new ArrayList();
}
return this.xmlEnumField;
}
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final XmlEnumFields that = ((XmlEnumFields) object);
{
List leftXmlEnumField;
leftXmlEnumField = (((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty()))?this.getXmlEnumField():null);
List rightXmlEnumField;
rightXmlEnumField = (((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty()))?that.getXmlEnumField():null);
if ((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty())) {
if ((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty())) {
if (!leftXmlEnumField.equals(rightXmlEnumField)) {
return false;
}
} else {
return false;
}
} else {
if ((that.xmlEnumField!= null)&&(!that.xmlEnumField.isEmpty())) {
return false;
}
}
}
return true;
}
public int hashCode() {
int currentHashCode = 1;
{
currentHashCode = (currentHashCode* 31);
List theXmlEnumField;
theXmlEnumField = (((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty()))?this.getXmlEnumField():null);
if ((this.xmlEnumField!= null)&&(!this.xmlEnumField.isEmpty())) {
currentHashCode += theXmlEnumField.hashCode();
}
}
return currentHashCode;
}
}