package com.ausregistry.jtoolkit2.se.rgp; public class RgpStatus { private final String status; private final String language; private final String message; public RgpStatus(String status, String language, String message) { this.status = status; this.language = language; this.message = message; } public String getStatus() { return status; } public String getLanguage() { return language; } public String getMessage() { return message; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((language == null) ? 0 : language.hashCode()); result = prime * result + ((message == null) ? 0 : message.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; } RgpStatus other = (RgpStatus) obj; if (language == null) { if (other.language != null) { return false; } } else if (!language.equals(other.language)) { return false; } if (message == null) { if (other.message != null) { return false; } } else if (!message.equals(other.message)) { return false; } if (status == null) { if (other.status != null) { return false; } } else if (!status.equals(other.status)) { return false; } return true; } }