PageRenderTime 20ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/main/java/de/jbee/lang/ReducibleSequence.java

http://github.com/jbee/jadamant
Java | 18 lines | 6 code | 4 blank | 8 comment | 0 complexity | e116663f42f6b73e166e7ad8e4f51658 MD5 | raw file
 1package de.jbee.lang;
 2
 3/**
 4 * A {@link Sequence} whose elements can be narrowed using {@link #take(int)} or {@link #drop(int)}.
 5 * 
 6 * Narrowing can be implemented by providing 'views' to the unchanged sequence below.
 7 * 
 8 * @author Jan Bernitt (jan.bernitt@gmx.de)
 9 * 
10 */
11public interface ReducibleSequence<E>
12		extends Sequence<E> {
13
14	ReducibleSequence<E> drop( int count );
15
16	ReducibleSequence<E> take( int count );
17
18}