@ Pure public P getElementAt ( int index ) { if ( index >= 0 && index < this . referenceElementCount ) { int idx = 0 ; for ( final GridCellElement < P > element : this . elements ) { if ( element . isReferenceCell ( this ) ) { if ( idx == index ) { return element . get ( ) ; } ++ idx ; } } } throw new IndexOutOfBoundsException ( ) ; }
Replies the reference element at the specified index in this cell .