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.Utail()The tail of the result.
-
-
-
Method Detail
-
head
public List<T> head()
Description copied from interface:SplitResultThe head of the result.- Specified by:
headin interfaceSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>>- Returns:
- returns the head
-
tail
public U tail()
Description copied from interface:SplitResultThe tail of the result.- Specified by:
tailin interfaceSplitResult<T extends SplitPointUnit,U extends SplitPointDataSource<T,U>>- Returns:
- returns the tail
-
-