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

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

The newest version!
package org.daisy.dotify.common.splitter;

import java.util.List;

/**
 * Provides a default splitter result.
 * @author Joel Håkansson
 *
 * @param  the type of units
 * @param  the type of data source
 */
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 - 2025 Weber Informatics LLC | Privacy Policy