For example, suppose I need to return two values, an int and a List of Foo. I
know it will work without any special coding if I return just
List<Foo>. But what if I want to return a container for both values,
like ListResults<Foo>...?


public class ListResults<T> {
        private List<T> page;
        private int totalCount;

        public ListResults(List<T> page, int totalCount) {
                this.page = page;
                this.totalCount = totalCount;
        }

        public List<T> getPage() {
                return page;
        }

        public int getTotalCount() {
                return totalCount;
        }
}

-- 
View this message in context: 
http://www.nabble.com/Handling-of-generics-other-than-Java-Collection-types-tp24598487p24599321.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to