public NestedListContainer getNestedList(int i){ int nr = 0; int offset = 0; for( Section s: sections ){ nr = s.nrOfNestedLists(); if( nr+offset > i )return s.getNestedList(i-offset); offset += nr; } return null; }
public NestedListContainer getNestedList(int i){ int nr = 0; int offset = 0; for( Section s: sections ){ nr = s.nrOfNestedLists(); if( nr+offset > i )return s.getNestedList(i-offset); offset += nr; } return null; }