static final void bindToMultiple(String variable, Data data, Formula... formulas) { boolean somewhereBinded = false; RuntimeException lastException = null; for (Formula f : formulas) { try { f.bind(variable, data); somewhereBinded = true; } catch (NoSuchElementException e) { lastException = e; } } if (!somewhereBinded) { if (lastException != null) { throw lastException; } } }
@Override public void setInterpreation(MathematicalInterpretation interpretation) { left.setInterpreation(interpretation); right.setInterpreation(interpretation); }