boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Xxx xxx = (Xxx) o; if (x != xxx.x) return false; return s != null ? s.equals(xxx.s) : xxx.s == null; }