package fi.arcusys.koku.tiva; /** * Action request data model * @author Jinhua Chen * Aug 15, 2011 */ public class ActionRequest { private String description; private String status; private String name; public String getDescription() { return description; } public String getStatus() { return status; } public void setDescription(String description) { this.description = description; } public void setStatus(String status) { this.status = status; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return "ActionRequest [description=" + description + ", status=" + status + ", name=" + name + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((status == null) ? 0 : status.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; } ActionRequest other = (ActionRequest) obj; if (description == null) { if (other.description != null) { return false; } } else if (!description.equals(other.description)) { return false; } if (name == null) { if (other.name != null) { return false; } } else if (!name.equals(other.name)) { return false; } if (status == null) { if (other.status != null) { return false; } } else if (!status.equals(other.status)) { return false; } return true; } }