Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ public interface FHIRPagingContext {
int getLastPageNumber();
int getPageNumber();
int getPageSize();
long getTotalCount();
int getTotalCount();
void setLastPageNumber(int lastPageNumber);
void setPageNumber(int pageNumber);
void setPageSize(int pageSize);
void setTotalCount(long totalCount);
void setTotalCount(int totalCount);
boolean isLenient();
void setLenient(boolean lenient);
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class FHIRPagingContextImpl implements FHIRPagingContext {
protected int lastPageNumber;
protected int pageNumber;
protected int pageSize;
protected long totalCount;
protected int totalCount;
protected boolean lenient = true;

public FHIRPagingContextImpl() {
this.pageNumber = DEFAULT_PAGE_NUMBER;
Expand All @@ -40,7 +41,7 @@ public int getPageSize() {
}

@Override
public long getTotalCount() {
public int getTotalCount() {
return totalCount;
}

Expand All @@ -60,7 +61,17 @@ public void setPageSize(int pageSize) {
}

@Override
public void setTotalCount(long totalCount) {
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}

@Override
public boolean isLenient() {
return lenient;
}

@Override
public void setLenient(boolean lenient) {
this.lenient = lenient;
}
}
Loading