Coverage Report - org.kuali.rice.core.api.criteria.QueryResults
 
Classes in this File Line Coverage Branch Coverage Complexity
QueryResults
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.core.api.criteria;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 /**
 21  
  * Contains a collection of results from a query.  This interface exists as a
 22  
  * utility for services that want to implement it to represents results from
 23  
  * criteria-based (or other) queries.
 24  
  * 
 25  
  * @param <T> the type of the objects contained within the results list
 26  
  * 
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  *
 29  
  */
 30  
 
 31  
 public interface QueryResults<T> {
 32  
         
 33  
         /**
 34  
          * Return the list of results that are contained within.  This list can
 35  
          * be empty but it should never be null.
 36  
          * 
 37  
          * @return the list of results
 38  
          */
 39  
         List<T> getResults();
 40  
         
 41  
 }