hudson.plugins.jira.soap.RemotePermissionMapping Maven / Gradle / Ivy
/**
* RemotePermissionMapping.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package hudson.plugins.jira.soap;
public class RemotePermissionMapping implements java.io.Serializable {
private hudson.plugins.jira.soap.RemotePermission permission;
private hudson.plugins.jira.soap.RemoteEntity[] remoteEntities;
public RemotePermissionMapping() {
}
public RemotePermissionMapping(
hudson.plugins.jira.soap.RemotePermission permission,
hudson.plugins.jira.soap.RemoteEntity[] remoteEntities) {
this.permission = permission;
this.remoteEntities = remoteEntities;
}
/**
* Gets the permission value for this RemotePermissionMapping.
*
* @return permission
*/
public hudson.plugins.jira.soap.RemotePermission getPermission() {
return permission;
}
/**
* Sets the permission value for this RemotePermissionMapping.
*
* @param permission
*/
public void setPermission(hudson.plugins.jira.soap.RemotePermission permission) {
this.permission = permission;
}
/**
* Gets the remoteEntities value for this RemotePermissionMapping.
*
* @return remoteEntities
*/
public hudson.plugins.jira.soap.RemoteEntity[] getRemoteEntities() {
return remoteEntities;
}
/**
* Sets the remoteEntities value for this RemotePermissionMapping.
*
* @param remoteEntities
*/
public void setRemoteEntities(hudson.plugins.jira.soap.RemoteEntity[] remoteEntities) {
this.remoteEntities = remoteEntities;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RemotePermissionMapping)) return false;
RemotePermissionMapping other = (RemotePermissionMapping) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.permission==null && other.getPermission()==null) ||
(this.permission!=null &&
this.permission.equals(other.getPermission()))) &&
((this.remoteEntities==null && other.getRemoteEntities()==null) ||
(this.remoteEntities!=null &&
java.util.Arrays.equals(this.remoteEntities, other.getRemoteEntities())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getPermission() != null) {
_hashCode += getPermission().hashCode();
}
if (getRemoteEntities() != null) {
for (int i=0;
i