public final void nextElement(FE element) throws BuildException { if (element == null || mCurrRow < 0 || mCurrRow >= mRows.size()) { throw new BuildException().setMissingData("Field2D", "NextElement null or no row yet"); } List<FE> row = mRows.get(mCurrRow); element.mY = mCurrRow; element.mX = row.size(); row.add(element); }