com.offbytwo.jenkins.model.ComputerSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-client Show documentation
Show all versions of jenkins-client Show documentation
A Jenkins API client for Java
package com.offbytwo.jenkins.model;
import java.util.List;
public class ComputerSet extends BaseModel {
private int busyExecutors;
List computer;
private String displayName;
private int totalExecutors;
public int getBusyExecutors() {
return busyExecutors;
}
public void setBusyExecutors(int busyExecutors) {
this.busyExecutors = busyExecutors;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public int getTotalExecutors() {
return totalExecutors;
}
public void setTotalExecutors(int totalExecutors) {
this.totalExecutors = totalExecutors;
}
public List getComputer() {
return computer;
}
public void setComputer(List computers) {
this.computer = computers;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + busyExecutors;
result = prime * result + ((computer == null) ? 0 : computer.hashCode());
result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
result = prime * result + totalExecutors;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ComputerSet other = (ComputerSet) obj;
if (busyExecutors != other.busyExecutors)
return false;
if (computer == null) {
if (other.computer != null)
return false;
} else if (!computer.equals(other.computer))
return false;
if (displayName == null) {
if (other.displayName != null)
return false;
} else if (!displayName.equals(other.displayName))
return false;
if (totalExecutors != other.totalExecutors)
return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy