class PagedResult {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PagedResult that = (PagedResult) o;

        if (cookie != null ? !cookie.equals(that.cookie) : that.cookie != null) return false;
        if (resultList != null ? !resultList.equals(that.resultList) : that.resultList != null) return false;

        return true;
    }

    public  PagedResult(List<?> resultList, PagedResultsCookie cookie);

}