This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* A linked list that exposes its length as part of its type. | |
* | |
* @author Marco Faella | |
* @version 1.0 | |
*/ | |
public class L<T,N extends L<T,?>> implements Iterable<T> { | |
private T item; |