List < PageEntry > getEntries ( int firstIndex , int lastIndex ) { Preconditions . checkArgument ( firstIndex <= lastIndex , "firstIndex must be smaller than or equal to lastIndex." ) ; ArrayList < PageEntry > result = new ArrayList <> ( ) ; for ( int i = firstIndex ; i <= lastIndex ; i ++ ) { result . add ( getEntryAt ( i ) ) ; } return result ; }
Gets all the Page Entries between the two indices .