All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.business.view.ChunkedView Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2013-2024, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.business.view;

import java.util.List;
import org.seedstack.business.finder.Result;

/**
 * A chunked view is an arbitrary portion of result organized in
 * arbitrary chunk.
 *
 * @param  the item type
 */
@Deprecated
public class ChunkedView extends AbstractView {
    private static final long serialVersionUID = 1L;

    /**
     * Constructor.
     *
     * @param items       the list of item
     * @param chunkOffset the chunk offset
     * @param chunkSize   the chunk size
     */
    public ChunkedView(Result items, long chunkOffset, long chunkSize) {
        super(items, chunkOffset, chunkSize);
    }

    /**
     * Constructor.
     *
     * @param items      the list of item
     * @param chunkStart the chunk start
     * @param chunkSize  the chunk size
     */
    public ChunkedView(List items, long chunkStart, long chunkSize) {
        super(items, chunkStart, chunkSize);
    }

    /**
     * Returns the offset.
     *
     * @return the chunk offset
     */
    public long getChunkOffset() {
        return resultViewOffset;
    }

    /**
     * Returns the size.
     *
     * @return the chunk size
     */
    public long getChunkSize() {
        return resultViewSize;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy