/* * * Copyright (C) 2007-2015 Licensed to the Comunes Association (CA) under * one or more contributor license agreements (see COPYRIGHT for details). * The CA licenses this file to you under the GNU Affero General Public * License version 3, (the "License"); you may not use this file except in * compliance with the License. This file is part of kune. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ package cc.kune.core.shared.dto; import java.util.List; // TODO: Auto-generated Javadoc /** * The Class SearchResultDTO. * * @param <T> * the generic type * @author vjrj@ourproject.org (Vicente J. Ruiz Jurado) */ public class SearchResultDTO<T> { /** The list. */ List<T> list; /** The size. */ int size; /** * Instantiates a new search result dto. */ public SearchResultDTO() { this(0, null); } /** * Instantiates a new search result dto. * * @param size * the size * @param list * the list */ public SearchResultDTO(final int size, final List<T> list) { this.list = list; this.size = size; } /** * Gets the list. * * @return the list */ public List<T> getList() { return list; } /** * Gets the size. * * @return the size */ public int getSize() { return size; } /** * Sets the list. * * @param list * the new list */ public void setList(final List<T> list) { this.list = list; } /** * Sets the size. * * @param size * the new size */ public void setSize(final int size) { this.size = size; } /* * (non-Javadoc) * * @see java.lang.Object#toString() */ @Override public String toString() { return "SearchResultDTO[(" + size + "): " + list + "]"; } }