@@ -0,0 +1,2009 @@
+/*%0A * Copyright (c) 2005-2010 Grameen Foundation USA%0A * All rights reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or%0A * implied. See the License for the specific language governing%0A * permissions and limitations under the License.%0A *%0A * See also http://www.apache.org/licenses/LICENSE-2.0.html for an%0A * explanation of the license and how it is applied.%0A */%0A%0Apackage org.mifos.dto.screen;%0A%0Aimport java.io.Serializable;%0A%0A@SuppressWarnings(%22PMD%22)%0A@edu.umd.cs.findbugs.annotations.SuppressWarnings(value=%7B%22SE_NO_SERIALVERSIONID%22%7D, justification=%22should disable at filter level and also for pmd - not important for us%22)%0Apublic class SearchDetailsDto implements Serializable %7B%0A%0A%09private final Integer totalCount;%0A%09private final int firstResult;%0A%09private final Integer page;%0A%09private final Integer pageSize;%0A%09%0A%09public SearchDetailsDto(Integer totalCount, int firstResult, Integer page, Integer pageSize) %7B%0A        this.totalCount = totalCount;%0A        this.firstResult = firstResult;%0A        this.page = page;%0A        this.pageSize = pageSize;%0A    %7D%0A%09%0A    public String getCurrentRange() %7B%0A%0A        int upperRange = this.firstResult + this.pageSize;%0A%0A        if (upperRange %3E totalCount) %7B%0A            upperRange = totalCount;%0A        %7D%0A%0A        return this.firstResult + %22-%22 + upperRange;%0A    %7D%0A%0A    public boolean isNotLastPage() %7B%0A        return firstResult+pageSize %3C (totalCount);%0A    %7D%0A%0A%09public Integer getTotalCount() %7B%0A%09%09return totalCount;%0A%09%7D%0A%0A%09public int getFirstResult() %7B%0A%09%09return firstResult;%0A%09%7D%0A%0A%09public Integer getPage() %7B%0A%09%09return page;%0A%09%7D%0A%0A%09public Integer getPageSize() %7B%0A%09%09return pageSize;%0A%09%7D%0A%7D

fix findbugs and cpd warnings