boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != this.getClass()) return false; var that = (R) obj; return this.f1 == that.f1 && this.f2 == that.f2 && this.f3 == that.f3 && this.f4 == that.f4; }