package org.infosec.ismp.situation.calculate.substep.callable.result; import java.sql.Timestamp; import java.util.List; import java.util.Map; import org.apache.commons.lang.builder.ToStringBuilder; public class ResultExponential { private Map<String,Float> exp; private int index; private Timestamp time; private int type; private List list; public int getType() { return type; } public void setType(int type) { this.type = type; } public Map<String, Float> getExp() { return exp; } public void setExp(Map<String, Float> exp) { this.exp = exp; } public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } public Timestamp getTime() { return time; } public void setTime(Timestamp time) { this.time = time; } public List getList() { return list; } public void setList(List list) { this.list = list; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((exp == null) ? 0 : exp.hashCode()); result = prime * result + index; result = prime * result + ((time == null) ? 0 : time.hashCode()); result = prime * result + type; return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ResultExponential other = (ResultExponential) obj; if (exp == null) { if (other.exp != null) return false; } else if (!exp.equals(other.exp)) return false; if (index != other.index) return false; if (time == null) { if (other.time != null) return false; } else if (!time.equals(other.time)) return false; if (type != other.type) return false; return true; } @Override public String toString() { return new ToStringBuilder(this).append(exp).append(index).append(time) .append(type).toString(); } }