com.offbytwo.jenkins.model.TestSuites Maven / Gradle / Ivy
The newest version!
package com.offbytwo.jenkins.model;
import java.util.List;
/**
* @author Karl Heinz Marbaise
*
*/
public class TestSuites {
private double duration;
private String id;
private String name;
private String timestamp;
private List cases;
public double getDuration() {
return duration;
}
public void setDuration(double duration) {
this.duration = duration;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public List getCases() {
return cases;
}
public void setCases(List cases) {
this.cases = cases;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((cases == null) ? 0 : cases.hashCode());
long temp;
temp = Double.doubleToLongBits(duration);
result = prime * result + (int) (temp ^ (temp >>> 32));
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
TestSuites other = (TestSuites) obj;
if (cases == null) {
if (other.cases != null)
return false;
} else if (!cases.equals(other.cases))
return false;
if (Double.doubleToLongBits(duration) != Double.doubleToLongBits(other.duration))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (timestamp == null) {
if (other.timestamp != null)
return false;
} else if (!timestamp.equals(other.timestamp))
return false;
return true;
}
}