@Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (!(o instanceof BaseCriteria)) return false;

        final BaseCriteria that = (BaseCriteria) o;

        if (pageRequest != null ? !pageRequest.equals(that.pageRequest) : that.pageRequest != null) return false;
        if (fetchSet != null ? !fetchSet.equals(that.fetchSet) : that.fetchSet != null) return false;
        return sortList != null ? sortList.equals(that.sortList) : that.sortList == null;
    }
Base criteria object used to aid getting pages of data.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/BaseCriteria.java