001/*
002 * Copyright (c) 2006-2015 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Florent Guillaume
011 */
012
013package org.nuxeo.ecm.core.api;
014
015import java.util.List;
016
017/**
018 * The bundling of a list and a total size.
019 */
020public class PartialList<E> {
021
022    public final List<E> list;
023
024    public final long totalSize;
025
026    /**
027     * Constructs a partial list.
028     *
029     * @param list the list
030     * @param totalSize the total size
031     */
032    public PartialList(List<E> list, long totalSize) {
033        this.list = list;
034        this.totalSize = totalSize;
035    }
036
037}