argos/dmp-backend/notification-service/notification-web/src/main/java/gr/cite/notification/web/model/QueryResult.java

38 lines
605 B
Java

package gr.cite.notification.web.model;
import java.util.ArrayList;
import java.util.List;
public class QueryResult<M> {
public QueryResult() { }
public QueryResult(List<M> items, long count)
{
this.items = items;
this.count = count;
}
public List<M> items;
public long count;
public List<M> getItems() {
return items;
}
public void setItems(List<M> items) {
this.items = items;
}
public long getCount() {
return count;
}
public void setCount(long count) {
this.count = count;
}
public static QueryResult Empty()
{
return new QueryResult(new ArrayList<>(), 0L);
}
}