code: private List<T> records(int index, List<T> records, boolean reverse){
          this.index = index;
          if(reverse)
              Collections.reverse(records);
          firstRow = records.get(0);
          lastRow = records.get(records.size()-1);
          return records;
      }
docs: /*-------------------------------------------------[ Navigation ]---------------------------------------------------