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

org.daisy.dotify.common.splitter.DefaultSplitResult Maven / Gradle / Ivy

package org.daisy.dotify.common.splitter;

import java.util.List;

/**
 * Provides a default splitter result.
 *
 * @param  the type of units
 * @param  the type of data source
 * @author Joel Håkansson
 */
public class DefaultSplitResult>
    implements SplitResult {

    private final List head;
    private final U tail;

    /**
     * Creates a new result.
     *
     * @param head the head of the result
     * @param tail the tail of the result
     */
    public DefaultSplitResult(List head, U tail) {
        this.head = head;
        this.tail = tail;
    }

    @Override
    public List head() {
        return head;
    }

    @Override
    public U tail() {
        return tail;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy