public BodyPortal(Form form) { super(null, 0, null); this.form = form; this.tableview = (form.getView() == FormController.TABLE_VIEW || form.getView() == FormController.LOCKED_TABLE_VIEW); }
@Override public int hashCode() { return form == null ? 0 : form.hashCode(); }
@Override public boolean equals(Object o) { if (form == null) return ((o instanceof BodyPortal) && (((BodyPortal) o).getForm() == null)); if (o instanceof BodyPortal) return form.equals(((BodyPortal) o).getForm()); return false; }