@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StatusLine that = (StatusLine) o; if (status != null ? !status.equals(that.status) : that.status != null) { return false; } if (version != that.version) { return false; } return true; }