com.googlecode.jbp.common.repository
Class ResultHolder<ID extends Serializable,T extends IIdentifiable<ID>>

java.lang.Object
  extended by com.googlecode.jbp.common.repository.ResultHolder<ID,T>
Type Parameters:
ID - The type of the entity's identifier.
T - The type of the entity that is searched for.
All Implemented Interfaces:
Serializable

public final class ResultHolder<ID extends Serializable,T extends IIdentifiable<ID>>
extends Object
implements Serializable

Class used to return the actual result list and the total number of results of a repository search.

Author:
Yannick LOTH - yannick AT littlej.biz -
See Also:
Serialized Form

Constructor Summary
ResultHolder(List<T> resultsParam, int resultQuantityParam)
           
 
Method Summary
 int getResultQuantity()
           
 List<T> getResults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultHolder

public ResultHolder(List<T> resultsParam,
                    int resultQuantityParam)
Method Detail

getResults

public List<T> getResults()

getResultQuantity

public int getResultQuantity()


Copyright © 2011. All Rights Reserved.