Package org.daisy.dotify.common.splitter
Class DefaultSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>>
- java.lang.Object
-
- org.daisy.dotify.common.splitter.DefaultSplitResult<T,U>
-
- Type Parameters:
T
- the type of unitsU
- the type of data source
- All Implemented Interfaces:
SplitResult<T,U>
public class DefaultSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>> extends Object implements SplitResult<T,U>
Provides a default splitter result.
-
-
Constructor Summary
Constructors Constructor Description DefaultSplitResult(List<T> head, U tail)
Creates a new result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
head()
The head of the result.U
tail()
The tail of the result.
-
-
-
Method Detail
-
head
public List<T> head()
Description copied from interface:SplitResult
The head of the result.- Specified by:
head
in interfaceSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>>
- Returns:
- returns the head
-
tail
public U tail()
Description copied from interface:SplitResult
The tail of the result.- Specified by:
tail
in interfaceSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>>
- Returns:
- returns the tail
-
-