/** * Returns index of the first item in a current page. Use in UI where you need a message: * <code>Displaying 101 to 140 items</code> ir something similar. * * @return index of the first item in a current page. */ public long getFrom(){ return (getCurrentPage() - 1) * getPageSize() + 1; }
/** * Returns index of the first item in a current page. Use in UI where you need a message: * <code>Displaying 101 to 140 items</code> ir something similar. * * @return index of the first item in a current page. */ public long getFrom(){ return (getCurrentPage() - 1) * getPageSize() + 1; }